JP2007034600A - Communication system, information processor and information processing method, information terminal equipment, information processing method and program - Google Patents

Communication system, information processor and information processing method, information terminal equipment, information processing method and program Download PDF

Info

Publication number
JP2007034600A
JP2007034600A JP2005215905A JP2005215905A JP2007034600A JP 2007034600 A JP2007034600 A JP 2007034600A JP 2005215905 A JP2005215905 A JP 2005215905A JP 2005215905 A JP2005215905 A JP 2005215905A JP 2007034600 A JP2007034600 A JP 2007034600A
Authority
JP
Japan
Prior art keywords
file system
command
transmission
response
card
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
JP2005215905A
Other languages
Japanese (ja)
Other versions
JP4784189B2 (en
Inventor
Sunao Morita
直 森田
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2005215905A priority Critical patent/JP4784189B2/en
Publication of JP2007034600A publication Critical patent/JP2007034600A/en
Application granted granted Critical
Publication of JP4784189B2 publication Critical patent/JP4784189B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To safely and efficiently attain communication among a plurality of file systems. <P>SOLUTION: In this information processor, IC cards OS45 and 46 acquire a command stored in a reception buffer 44, and when a file system ID included in the command is matched with file system ID corresponding to itself, corresponding processing is executed, and the processing result is supplied to a transmission buffer 47. When processing to be executed by another file system exists as the execution result of processing, the IC cards OS45 and 46 include the other file system ID in the processing result. A transmission buffer 47 stores the processing result, and supplies it to the reception buffer 44. The processing result stored in the transmission buffer 47 is transmitted through each part to the reader/writer. This invention may be applied to the IC card having the plurality of file systems. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、通信システム、情報処理装置および情報処理方法、情報端末装置および情報処理方法、並びにプログラムに関し、特に、情報端末装置に格納された複数のファイルシステム間のデータの授受を、より安全かつ効率的に行うことができるようにした通信システム、情報処理装置および情報処理方法、情報端末装置および情報処理方法、並びにプログラムに関する。   The present invention relates to a communication system, an information processing device, an information processing method, an information terminal device, an information processing method, and a program, and more particularly, it is safer to exchange data between a plurality of file systems stored in the information terminal device. The present invention relates to a communication system, an information processing apparatus, an information processing method, an information terminal apparatus, an information processing method, and a program that can be efficiently performed.

従来、IC(Integrated Circuit)カードに関する様々な技術が開発されている。   Conventionally, various technologies related to IC (Integrated Circuit) cards have been developed.

例えば、特許文献1には、ICカードと通信するリーダライタが、ICカードに格納されている複数のアプリケーションを連続して実行させる連続実行コマンドをICカードに送信することで、ICカードに格納された特定のアプリケーションに対して、機能を追加する技術が開示されている。   For example, in Patent Document 1, a reader / writer that communicates with an IC card transmits a continuous execution command that continuously executes a plurality of applications stored in the IC card to the IC card, thereby storing the IC card. A technique for adding a function to a specific application is disclosed.

また、例えば、特許文献2には、ICカードと通信するリーダライタが、複数のアプリケーションプログラムに対応するICカードに格納されているデータを用いて、コマンドをICカードに送信する技術が開示されている。   For example, Patent Document 2 discloses a technique in which a reader / writer that communicates with an IC card transmits a command to the IC card using data stored in the IC card corresponding to a plurality of application programs. Yes.

さらに、例えば、ICカードの内部に複数のファイルシステム(またはOS(Operating System))を格納しておき、ICカードに格納されている複数のファイルシステムによる処理を実行させる場合には、一旦、リーダライタにその処理結果を返信するようにすることで、ICカードに格納されている複数のファイルシステムによる処理の安全性を高めるようにする技術も開発されている。
特開2003−30609号公報 特開2003−308492号公報
Furthermore, for example, when a plurality of file systems (or OS (Operating System)) are stored in the IC card and processing by a plurality of file systems stored in the IC card is executed, the reader is temporarily set. A technique for improving the safety of processing by a plurality of file systems stored in an IC card by returning the processing result to the writer has also been developed.
JP 2003-30609 A JP 2003-308492 A

しかしながら、ICカードの内部に格納されている複数のファイルシステムによる処理を実行させる場合、一旦、リーダライタにその処理結果を返信するようにすると、リーダライタとICカードとの間の通信は、通信オーバーヘッドや速度の限界があるため、効率的ではない。   However, when processing by a plurality of file systems stored in the IC card is executed, once the processing result is returned to the reader / writer, the communication between the reader / writer and the IC card is performed by communication. Inefficient due to overhead and speed limitations.

本発明は、このような状況に鑑みてなされたものであり、ICカードに格納された複数のファイルシステム間のデータの授受を、より安全かつ効率的に行うことができるようにするものである。   The present invention has been made in view of such a situation, and enables data to be exchanged between a plurality of file systems stored in an IC card more safely and efficiently. .

本発明の第1の側面の通信システムは、情報処理装置と、複数のファイルシステムを有する情報端末装置とが通信を行う通信システムであって、前記情報処理装置は、前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を送信する第1の送信手段と、前記第1の送信手段により送信した前記指令に対する前記情報端末装置からの応答を受信する第1の受信手段とを備え、前記情報端末装置は、前記第1の送信手段により送信されてきた前記指令を受信する第2の受信手段と、前記第2の受信手段により受信された前記指令を記憶する受信記憶手段と、複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段により記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行する実行手段と、前記実行手段により実行された処理の結果である実行結果を、前記情報端末装置に送信するために記憶するとともに、前記実行結果を、前記受信記憶手段に供給する送信記憶手段と、前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する第2の送信手段とを備え、前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め、前記送信記憶手段は、前記実行手段により実行された処理の結果である前記実行結果を記憶するとともに、前記実行結果を前記受信記憶手段に供給し、前記第2の送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し、前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し、前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する。   A communication system according to a first aspect of the present invention is a communication system in which an information processing device and an information terminal device having a plurality of file systems communicate with each other, and the information processing device includes a plurality of information terminal devices. A first transmission unit that transmits a command including a file system ID that identifies one file system as a transmission destination, and the information terminal device that responds to the command transmitted by the first transmission unit. First receiving means for receiving a response, wherein the information terminal device receives the command transmitted by the first transmitting means, and receives the command by the second receiving means. A reception storage means for storing the received command and a file system corresponding to one of a plurality of file systems, and the reception storage means If the file system ID included in the acquired command matches the file system ID that identifies the file system corresponding to itself, the processing corresponding to the command is performed. Execution means for executing, and a transmission storage means for storing an execution result, which is a result of the process executed by the execution means, for transmission to the information terminal device, and supplying the execution result to the reception storage means And a second transmission means for transmitting the execution result stored in the transmission storage means to the information terminal device, the execution means executing the process corresponding to the command, the information terminal When there is processing executed by another file system among a plurality of file systems included in the apparatus, the execution result includes the transmission destination The transmission storage means stores the execution result that is the result of the process executed by the execution means, and supplies the execution result to the reception storage means, including another file system ID that identifies the file system. The second transmission unit transmits the execution result stored in the transmission storage unit as a response to the information processing apparatus, and the reception storage unit receives the execution result supplied from the transmission storage unit. The execution unit acquires the execution result stored in the reception storage unit, and the file system ID of the transmission destination included in the acquired execution result is the file system corresponding to itself. If the file system ID to be identified matches, the process corresponding to the execution result is further executed.

前記情報処理装置は、前記第1の送信手段により送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定する待機時間設定手段をさらに備え、前記待機時間設定手段は、前記第1の受信手段により受信された前記情報端末装置からの前記応答が自分自身への応答でない場合、前記待機時間を延長する。   The information processing apparatus further includes standby time setting means for setting a standby time until a response corresponding to the command transmitted by the first transmission means is transmitted, wherein the standby time setting means includes the first If the response from the information terminal device received by one receiving means is not a response to itself, the waiting time is extended.

本発明の第1の側面においては、情報処理装置で、ファイルシステムを特定するファイルシステムIDを含む指令が送信され、送信された前記指令に対する前記情報端末装置からの応答が受信される。また、情報端末装置で、前記指令が受信されるとともに受信記憶手段に記憶され、複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記指令に含まれる前記ファイルシステムIDが、自分自身に対応するファイルシステムIDと一致する場合に、前記指令に対応する処理が実行され、処理の結果である実行結果が、前記情報端末装置に送信するために送信記憶手段に記憶されるとともに、前記実行結果が前記受信記憶手段に供給され、前記送信記憶手段に記憶された前記実行結果が、前記情報端末装置に送信される。さらに、前記指令に対応する処理が実行された結果、他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先の他のファイルシステムIDが含められる。   In the first aspect of the present invention, the information processing device transmits a command including a file system ID for specifying a file system, and receives a response from the information terminal device to the transmitted command. Further, the information terminal device receives the command and stores it in the reception storage means, corresponds to one file system of a plurality of file systems, and the file system ID included in the command is itself When the file system ID corresponding to is matched with the file system ID, the process corresponding to the command is executed, and the execution result, which is the result of the process, is stored in the transmission storage means for transmission to the information terminal device, and An execution result is supplied to the reception storage unit, and the execution result stored in the transmission storage unit is transmitted to the information terminal device. Further, when there is a process executed by another file system as a result of executing the process corresponding to the command, the other file system ID of the transmission destination is included in the execution result.

本発明の第2の側面の情報処理装置は、複数のファイルシステムを有する情報端末装置と通信を行う情報処理装置であって、前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を送信する送信手段と、前記送信手段により送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定する待機時間設定手段と、前記第1の送信手段により送信した前記指令に対する前記情報端末装置からの応答を受信する第1の受信手段とを備え、前記待機時間設定手段は、前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間を延長する。   An information processing device according to a second aspect of the present invention is an information processing device that communicates with an information terminal device having a plurality of file systems, and among the plurality of file systems that the information terminal device has, 1 as a transmission destination A transmission unit that transmits a command including a file system ID that identifies one file system; a standby time setting unit that sets a standby time until a response corresponding to the command transmitted by the transmission unit is transmitted; First receiving means for receiving a response from the information terminal apparatus to the command transmitted by the first transmitting means, wherein the waiting time setting means is a message from the information terminal apparatus received by the receiving means. If the response is not a response to itself, the waiting time is extended.

前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記応答には、前記待機時間を延長するための延長時間がさらに含まれ、前記待機時間設定手段は、前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記応答に含まれる前記延長時間に基づいて、前記待機時間を延長する。   If the response from the information terminal device received by the receiving means is not a response to itself, the response further includes an extension time for extending the waiting time, and the waiting time setting means Extends the waiting time based on the extension time included in the response when the response from the information terminal device received by the receiving means is not a response to itself.

本発明の第2の側面の情報処理方法(またはプログラム)は、情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を送信し、送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定し、送信した前記指令に対する前記情報端末装置からの応答を受信し、受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間を延長するステップを含む情報処理方法(またはステップを含む処理をコンピュータに実行させるプログラム)。   The information processing method (or program) according to the second aspect of the present invention transmits and transmits a command including a file system ID that identifies one file system as a transmission destination among a plurality of file systems of an information terminal device. A waiting time until a response corresponding to the received command is transmitted, a response from the information terminal device to the transmitted command is received, and the received response from the information terminal device is If it is not a response to itself, an information processing method including a step of extending the waiting time (or a program for causing a computer to execute a process including the step).

本発明の第2の側面においては、ファイルシステムIDを含む指令が送信され、送信された前記指令に対応する応答が送信されてくるまでの待機時間が設定され、前記指令に対する前記情報端末装置からの応答が受信され、受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間が延長される。   In the second aspect of the present invention, a command including a file system ID is transmitted, a waiting time until a response corresponding to the transmitted command is transmitted is set, and the information terminal device for the command If the response from the information terminal device received is not a response to itself, the waiting time is extended.

本発明の第3の側面の情報端末装置は、複数のファイルシステムを有し、情報処理装置と通信を行う情報端末装置であって、前記情報処理装置から送信されてきた指令であって、自分自身が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を受信する受信手段と、前記受信手段により受信された前記指令を記憶する受信記憶手段と、複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段により記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行する実行手段と、前記実行手段により実行された処理の結果である実行結果を、前記情報端末装置に送信するために記憶するとともに、前記実行結果を、前記受信記憶手段に供給する送信記憶手段と、前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する送信手段とを備え、前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め、前記送信記憶手段は、前記実行手段により実行された処理の結果である前記実行結果を記憶するとともに、前記実行結果を前記受信記憶手段に供給し、前記送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し、前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し、前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する。   An information terminal device according to a third aspect of the present invention is an information terminal device that has a plurality of file systems and communicates with an information processing device, and is an instruction transmitted from the information processing device, A receiving unit that receives a command including a file system ID that identifies one file system as a transmission destination among a plurality of file systems that the device itself has; a reception storage unit that stores the command received by the receiving unit; The file corresponding to one file system of a plurality of file systems, acquiring the command stored by the reception storage means, and the file system ID included in the acquired command corresponding to itself Execution means for executing processing corresponding to the instruction when the file system ID matches the system A transmission storage means for storing an execution result, which is a result of the process executed by the execution means, for transmission to the information terminal device, and supplying the execution result to the reception storage means; and the transmission storage Transmission means for transmitting the execution result stored in the means to the information terminal device, and the execution means executes a process corresponding to the command, and as a result, the information terminal device includes a plurality of file systems. If there is a process executed by another file system, the execution result includes another file system ID that identifies the other file system as a transmission destination, and the transmission storage means is executed by the execution means. The execution result which is the result of the processed processing is stored, and the execution result is supplied to the reception storage unit. The execution result stored in the transmission storage means is transmitted as a response to the information processing apparatus, the reception storage means further stores the execution result supplied from the transmission storage means, and the execution means When the execution result stored in the reception storage means is acquired, and the file system ID of the transmission destination included in the acquired execution result matches the file system ID that identifies the file system corresponding to itself, A process corresponding to the execution result is further executed.

前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDとともに、前記情報処理装置に前記指令に対する応答を送信するまでの待機時間を延長するための延長時間をさらに含め、前記送信記憶手段は、前記実行結果を記憶するとともに、前記実行結果を前記受信記憶手段に供給し、前記送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し、前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し、前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する。   As a result of executing the process corresponding to the command, when the execution unit includes a process executed by another file system of the plurality of file systems included in the information terminal device, the execution result includes a transmission destination The transmission storage means further includes an extension time for extending a waiting time until a response to the command is transmitted to the information processing apparatus together with another file system ID for specifying the other file system. The result is stored and the execution result is supplied to the reception storage unit, and the transmission unit transmits the execution result stored in the transmission storage unit as a response to the information processing apparatus, and the reception storage unit Further stores the execution result supplied from the transmission storage means, and the execution means stores in the reception storage means If the file system ID of the transmission destination included in the acquired execution result matches the file system ID that identifies the file system corresponding to itself, it corresponds to the execution result. Further processing is performed.

本発明の第3の側面の情報処理方法(またはプログラム)は、前記情報処理装置から送信されてきた指令であって、自分自身が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を受信し、受信された前記指令を受信記憶手段に記憶させ、複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段に記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行し、その結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め、実行された処理の結果である実行結果を、前記情報端末装置に送信するために送信記憶手段に記憶させるとともに、前記実行結果を、前記受信記憶手段に供給し、前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信するステップを含む情報処理方法(またはステップを含む処理をコンピュータに実行させるプログラム)。   An information processing method (or program) according to a third aspect of the present invention is a command transmitted from the information processing apparatus, and includes one file system as a transmission destination among a plurality of file systems owned by itself. A command including a file system ID to be identified is received, the received command is stored in a reception storage unit, and corresponds to one file system of a plurality of file systems, and the command stored in the reception storage unit A command is acquired, and when the file system ID included in the acquired command matches a file system ID that identifies the file system corresponding to itself, a process corresponding to the command is executed, and the result And executed by another file system among a plurality of file systems of the information terminal device. In order to send an execution result, which is a result of the executed process, to the information terminal device, including another file system ID that identifies the other file system as a transmission destination in the execution result when there is a process An information processing method (or step) comprising: storing the execution result in the transmission storage unit, supplying the execution result to the reception storage unit, and transmitting the execution result stored in the transmission storage unit to the information terminal device A program for causing a computer to execute a process including:

本発明の第3の側面においては、情報処理装置から送信されてきた指令であって、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令が受信され、受信された前記指令が受信記憶手段に記憶される。また、前記受信記憶手段に記憶された前記指令が取得され、前記指令に含まれる前記ファイルシステムIDが、自分自身に対応するファイルシステムIDと一致する場合に、前記指令に対応する処理が実行され、その結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、処理の結果である前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDが含められる。   In the third aspect of the present invention, a command transmitted from the information processing apparatus, including a command including a file system ID specifying one file system as a transmission destination, is received. Stored in the storage means. In addition, when the command stored in the reception storage unit is acquired and the file system ID included in the command matches a file system ID corresponding to itself, processing corresponding to the command is executed. As a result, when there is a process executed by another file system among a plurality of file systems of the information terminal device, the other file system is specified as a transmission destination in the execution result which is a result of the process. Other file system IDs to be included are included.

本発明の一側面によれば、複数のファイルシステムの処理を、情報端末装置に実行させることができる。特に、本発明の一側面によれば、複数のファイルシステムの処理を、安全かつ効率的に行うことができる。   According to one aspect of the present invention, it is possible to cause an information terminal device to execute processing of a plurality of file systems. In particular, according to one aspect of the present invention, processing of a plurality of file systems can be performed safely and efficiently.

以下に本発明の実施の形態を説明するが、本発明の構成要件と、発明の詳細な説明に記載の実施の形態との対応関係を例示すると、次のようになる。この記載は、本発明をサポートする実施の形態が、発明の詳細な説明に記載されていることを確認するためのものである。従って、発明の詳細な説明中には記載されているが、本発明の構成要件に対応する実施の形態として、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その構成要件に対応するものではないことを意味するものではない。逆に、実施の形態が構成要件に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その構成要件以外の構成要件には対応しないものであることを意味するものでもない。   Embodiments of the present invention will be described below. Correspondences between the configuration requirements of the present invention and the embodiments described in the detailed description of the present invention are exemplified as follows. This description is to confirm that the embodiments supporting the present invention are described in the detailed description of the invention. Accordingly, although there are embodiments that are described in the detailed description of the invention but are not described here as embodiments corresponding to the constituent elements of the present invention, It does not mean that the embodiment does not correspond to the configuration requirements. Conversely, even if an embodiment is described here as corresponding to a configuration requirement, that means that the embodiment does not correspond to a configuration requirement other than the configuration requirement. It's not something to do.

本発明の第1の側面の通信システム(例えば、図1の通信システム11)は、情報処理装置(例えば、図3のリーダライタ22)と、複数のファイルシステム(例えば、図2のファイルシステム51とファイルシステム52)を有する情報端末装置(例えば、図2の非接触ICカード21)とが通信を行う通信システムであって、前記情報処理装置は、前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムID(例えば、図2のファイルシステムID#1)を含む指令(例えば、図4のコマンド120)を送信する第1の送信手段(例えば、図3の送信部91)と、前記第1の送信手段により送信した前記指令に対する前記情報端末装置からの応答を受信する第1の受信手段(例えば、図3の受信部92)とを備え、前記情報端末装置は、前記第1の送信手段により送信されてきた前記指令を受信する第2の受信手段(例えば、図2の受信部62)と、前記第2の受信手段により受信された前記指令を記憶する受信記憶手段(例えば、図2の受信バッファ44)と、複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段により記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行する実行手段(例えば、図2のICカードOS45またはICカードOS46)と、前記実行手段により実行された処理の結果である実行結果を、前記情報端末装置に送信するために記憶するとともに、前記実行結果を、前記受信記憶手段に供給する送信記憶手段(例えば、図2の送信バッファ47)と、前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する第2の送信手段(例えば、図2の送信部61)とを備え、前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め(例えば、図9のステップS256または図10のステップS306)、前記送信記憶手段は、前記実行手段により実行された処理の結果である前記実行結果を記憶するとともに(例えば、図8のステップS202)、前記実行結果を前記受信記憶手段に供給し(例えば、図8のステップS203)、前記第2の送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し(例えば、図8のステップS204)、前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し(例えば、図7のステップS152)、前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する(例えば、図9のステップS254または図10のステップS304)。   The communication system (for example, the communication system 11 in FIG. 1) of the first aspect of the present invention includes an information processing apparatus (for example, the reader / writer 22 in FIG. 3) and a plurality of file systems (for example, the file system 51 in FIG. 2). And an information terminal device (for example, the contactless IC card 21 in FIG. 2) having a file system 52), wherein the information processing device includes a plurality of file systems included in the information terminal device. Among these, a first transmission means (for example, a command 120 including a command 120 in FIG. 4) including a file system ID (for example, the file system ID # 1 in FIG. 2) that identifies one file system as a transmission destination. 3) and a first receiver that receives a response from the information terminal device to the command transmitted by the first transmitter. Means (for example, the receiving unit 92 in FIG. 3), and the information terminal device receives second instructions transmitted by the first transmitting unit (for example, the receiving unit in FIG. 2). 62), a reception storage means (for example, the reception buffer 44 in FIG. 2) for storing the command received by the second reception means, and one file system among a plurality of file systems, The command stored in the reception storage means is acquired, and when the file system ID included in the acquired command matches a file system ID that identifies the file system corresponding to itself, the command is Execution means (for example, the IC card OS 45 or IC card OS 46 in FIG. 2) for executing the corresponding processing, and the processing executed by the execution means An execution result as a result is stored for transmission to the information terminal device, and a transmission storage means (for example, the transmission buffer 47 in FIG. 2) for supplying the execution result to the reception storage means, and the transmission storage A second transmission unit (for example, the transmission unit 61 in FIG. 2) that transmits the execution result stored in the unit to the information terminal device, and the execution unit has executed a process corresponding to the command As a result, when there is a process executed by another file system among a plurality of file systems included in the information terminal device, another file system ID that identifies the other file system as a transmission destination is included in the execution result. Including (for example, step S256 in FIG. 9 or step S306 in FIG. 10), the transmission storage means is the result of the processing executed by the execution means. The execution result is stored (for example, step S202 in FIG. 8), the execution result is supplied to the reception storage unit (for example, step S203 in FIG. 8), and the second transmission unit is configured to store the transmission storage. The execution result stored in the means is transmitted as a response to the information processing apparatus (for example, step S204 in FIG. 8), and the reception storage means further stores the execution result supplied from the transmission storage means. (For example, step S152 in FIG. 7), the execution unit acquires the execution result stored in the reception storage unit, and the file system ID of the transmission destination included in the acquired execution result corresponds to itself. If the file system ID matches the file system ID to be executed, a process corresponding to the execution result is further executed (for example, FIG. 9). Step S304 of step S254 or Figure 10).

この通信システムの前記情報処理装置は、前記第1の送信手段により送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定する待機時間設定手段(例えば、図3のタイマ95)をさらに備え、前記待機時間設定手段は、前記第1の受信手段により受信された前記情報端末装置からの前記応答が自分自身への応答でない場合、前記待機時間を延長する(例えば、図6のステップS119)。   The information processing apparatus of this communication system is configured to set a waiting time until a response corresponding to the command transmitted by the first transmitting unit is transmitted (for example, a timer 95 in FIG. 3). The waiting time setting means extends the waiting time when the response from the information terminal device received by the first receiving means is not a response to itself (for example, FIG. 6). Step S119).

本発明の第2の側面の情報処理装置(例えば、図3のリーダライタ22)は、複数のファイルシステム(例えば、図2のファイルシステム51とファイルシステム52)を有する情報端末装置(例えば、図2の非接触ICカード21)と通信を行う情報処理装置であって、前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムID(例えば、図2のファイルシステムID#1)を含む指令(例えば、図4のコマンド120)を送信する送信手段(例えば、図3の送信部91)と、前記送信手段により送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定する待機時間設定手段(例えば、図3のタイマ95)と、前記第1の送信手段により送信した前記指令に対する前記情報端末装置からの応答を受信する第1の受信手段(例えば、図3の受信部92)とを備え、前記待機時間設定手段は、前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間を延長する(例えば、図6のステップS119)。   An information processing apparatus (for example, the reader / writer 22 of FIG. 3) according to the second aspect of the present invention has an information terminal apparatus (for example, FIG. 2) having a plurality of file systems (for example, the file system 51 and the file system 52 of FIG. 2). 2 non-contact IC card 21), and a file system ID (for example, FIG. 2) that specifies one file system as a transmission destination among a plurality of file systems of the information terminal device. The transmission unit (for example, the transmission unit 91 in FIG. 3) that transmits a command (for example, the command 120 in FIG. 4) including the file system ID # 1) and a response corresponding to the command transmitted by the transmission unit is transmitted. Waiting time setting means (for example, the timer 95 in FIG. 3) for setting a waiting time until it is received, and before transmission by the first transmission means First receiving means for receiving a response from the information terminal device to the command (for example, the receiving unit 92 in FIG. 3), and the waiting time setting means from the information terminal device received by the receiving means If the response is not a response to itself, the waiting time is extended (for example, step S119 in FIG. 6).

この情報処置装置の前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記応答には、前記待機時間を延長するための延長時間がさらに含まれ、前記待機時間設定手段は、前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記応答に含まれる前記延長時間に基づいて、前記待機時間を延長する(例えば、図6のステップS119)。   If the response from the information terminal device received by the receiving means of the information processing device is not a response to itself, the response further includes an extension time for extending the waiting time, The waiting time setting means extends the waiting time based on the extension time included in the response when the response from the information terminal device received by the receiving means is not a response to itself. (For example, step S119 in FIG. 6).

本発明の第2の側面の情報処理方法またはプログラムは、前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムID(例えば、図2のファイルシステムID#1)を含む指令(例えば、図4のコマンド120)を送信し(例えば、図6のステップS111)、送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定し(例えば、図6のステップS112)、送信した前記指令に対する前記情報端末装置からの応答を受信し(例えば、図6のステップS116)、受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間を延長する(例えば、図6のステップS119)。   An information processing method or program according to a second aspect of the present invention provides a file system ID that identifies one file system as a transmission destination among a plurality of file systems of the information terminal device (for example, the file system ID of FIG. 2). # 1) (for example, command 120 in FIG. 4) is transmitted (for example, step S111 in FIG. 6), and a waiting time until a response corresponding to the transmitted command is transmitted is set (for example, 6 (step S112 in FIG. 6), receives a response from the information terminal device to the transmitted command (for example, step S116 in FIG. 6), and receives the response from the information terminal device to itself. If it is not a response, the waiting time is extended (for example, step S119 in FIG. 6).

本発明の第3の側面の情報端末装置(例えば、図2の非接触ICカード21)は、複数のファイルシステムを有し、情報処理装置と通信を行う情報端末装置であって、前記情報処理装置から送信されてきた指令(例えば、図4のコマンド120)であって、自分自身が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムID(例えば、図2のファイルシステムID#1)を含む指令を受信する受信手段(例えば、図2の受信部62)と、前記受信手段により受信された前記指令を記憶する受信記憶手段(例えば、図2の受信バッファ44)と、複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段により記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行する実行手段(例えば、図2のICカードOS45またはICカードOS46)と、前記実行手段により実行された処理の結果である実行結果を、前記情報端末装置に送信するために記憶するとともに、前記実行結果を、前記受信記憶手段に供給する送信記憶手段と、前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する送信手段(例えば、図2の送信バッファ47)とを備え、前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め(例えば、図9のステップS256または図10のステップS306)、前記送信記憶手段は、前記実行手段により実行された処理の結果である前記実行結果を記憶するとともに(例えば、図8のステップS202)、前記実行結果を前記受信記憶手段に供給し(例えば、図8のステップS203)、前記送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し(例えば、図8のステップS204)、前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し(例えば、図7のステップS152)、前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する(例えば、図9のステップS254または図10のステップS304)。   An information terminal device according to the third aspect of the present invention (for example, the non-contact IC card 21 in FIG. 2) is an information terminal device that has a plurality of file systems and communicates with an information processing device. A command (for example, command 120 in FIG. 4) transmitted from the apparatus, and a file system ID (for example, in FIG. 2) that identifies one file system as a transmission destination among a plurality of file systems that the device itself has. Receiving means for receiving a command including file system ID # 1) (for example, receiving unit 62 in FIG. 2) and receiving storage means for storing the command received by the receiving means (for example, receiving buffer 44 in FIG. 2). ) And one of the plurality of file systems, and the command stored by the reception storage means is acquired and acquired. Execution means (for example, the IC card of FIG. 2) that executes processing corresponding to the command when the file system ID included in the command matches a file system ID that identifies the file system corresponding to itself. OS 45 or IC card OS 46) and an execution result that is a result of the process executed by the execution unit is stored for transmission to the information terminal device, and the execution result is transmitted to the reception storage unit Storage means, and transmission means for transmitting the execution result stored in the transmission storage means to the information terminal device (for example, the transmission buffer 47 in FIG. 2), the execution means corresponding to the command As a result of executing the process, it is executed by another file system among a plurality of file systems of the information terminal device. When there is a process, the execution result includes another file system ID that identifies the other file system as a transmission destination (for example, step S256 in FIG. 9 or step S306 in FIG. 10), and the transmission storage means The execution result that is the result of the process executed by the execution unit is stored (for example, step S202 in FIG. 8), and the execution result is supplied to the reception storage unit (for example, step S203 in FIG. 8). The transmission unit transmits the execution result stored in the transmission storage unit as a response to the information processing apparatus (for example, step S204 in FIG. 8), and the reception storage unit is supplied from the transmission storage unit. The execution result is further stored (for example, step S152 in FIG. 7), and the execution means is stored in the reception storage means. If the file system ID of the transmission destination included in the acquired execution result matches the file system ID that identifies the file system corresponding to itself, it corresponds to the execution result. Further processing is performed (for example, step S254 in FIG. 9 or step S304 in FIG. 10).

この情報端末装置の前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムID(例えば、図2のファイルシステムID#2)とともに(例えば、図9のステップS256または図10のステップS306)、前記情報処理装置に前記指令に対する応答を送信するまでの待機時間を延長するための延長時間をさらに含め(例えば、図9のステップS257または図10のステップS307)、前記送信記憶手段は、前記実行結果を記憶するとともに(例えば、図8のステップS202)、前記実行結果を前記受信記憶手段に供給し(例えば、図8のステップS203)、前記送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し、前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し(例えば、図7のステップS152)、前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する(例えば、図9のステップS254または図10のステップS304)。   The execution means of the information terminal device executes the process corresponding to the command, and as a result, when there is a process executed by another file system among a plurality of file systems of the information terminal apparatus, the execution result In addition to the other file system ID (for example, file system ID # 2 in FIG. 2) that identifies the other file system as a transmission destination (for example, step S256 in FIG. 9 or step S306 in FIG. 10), the information processing Further including an extended time for extending a waiting time until the response to the command is transmitted to the apparatus (for example, step S257 in FIG. 9 or step S307 in FIG. 10), the transmission storage means stores the execution result. (For example, step S202 in FIG. 8), the execution result is supplied to the reception storage means. (For example, step S203 in FIG. 8), the transmission unit transmits the execution result stored in the transmission storage unit as a response to the information processing apparatus, and the reception storage unit is supplied from the transmission storage unit. The execution result is further stored (for example, step S152 in FIG. 7), the execution means acquires the execution result stored in the reception storage means, and the transmission destination included in the acquired execution result If the file system ID matches the file system ID that identifies the file system corresponding to itself, the process corresponding to the execution result is further executed (for example, step S254 in FIG. 9 or step S304 in FIG. 10). ).

本発明の第3の側面の情報処理方法またはプログラムは、前記情報処理装置から送信されてきた指令(例えば、図4のコマンド120)であって、自分自身が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムID(例えば、図2のファイルシステムID#1)を含む指令を受信し(例えば、図2の受信部62が実行する処理)、受信された前記指令を受信記憶手段(例えば、図2の受信バッファ44)に記憶させ(例えば、図7のステップS152)、複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段に記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行し(例えば、図9のステップS254または図10のステップS304)、その結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め(例えば、図9のステップS256または図10のステップS306)、実行された処理の結果である実行結果を、前記情報端末装置に送信するために送信記憶手段(例えば、図2の送信バッファ47)に記憶させるとともに(例えば、図8のステップS202)、前記実行結果を、前記受信記憶手段に供給し(例えば、図8のステップS203)、前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する。   An information processing method or program according to a third aspect of the present invention is a command (for example, command 120 in FIG. 4) transmitted from the information processing apparatus, and is transmitted among a plurality of file systems owned by itself. A command including a file system ID (for example, the file system ID # 1 in FIG. 2) specifying one file system is received (for example, processing executed by the receiving unit 62 in FIG. 2), and the received command is received. Is stored in the reception storage means (for example, the reception buffer 44 in FIG. 2) (for example, step S152 in FIG. 7), corresponds to one file system among the plurality of file systems, and is stored in the reception storage means. The file system ID included in the acquired command is the file system corresponding to itself. When the file system ID matches the file system ID, the process corresponding to the command is executed (for example, step S254 in FIG. 9 or step S304 in FIG. 10), and as a result, a plurality of file systems included in the information terminal device When there is a process executed by another file system, the other file system ID that identifies the other file system as a transmission destination is included in the execution result (for example, step S256 of FIG. 9 or FIG. 10). Step S306), the execution result which is the result of the executed process is stored in the transmission storage means (for example, the transmission buffer 47 of FIG. 2) for transmission to the information terminal device (for example, the step of FIG. 8). S202), and the execution result is supplied to the reception storage means (for example, step S203 in FIG. 8). The execution result stored in the transmission storing means, and transmits to the information terminal device.

以下、図を参照して、本発明を適用した一実施の形態について説明する。   Hereinafter, an embodiment to which the present invention is applied will be described with reference to the drawings.

図1は、本発明を適用した通信システム11の一実施の形態の構成例を示している。   FIG. 1 shows a configuration example of an embodiment of a communication system 11 to which the present invention is applied.

図1において、通信システム11は、非接触ICカード(情報端末装置)21、リーダライタ(非接触リーダライタ)22、および非接触ICカード(情報端末装置)23により構成されている。   In FIG. 1, the communication system 11 includes a non-contact IC card (information terminal device) 21, a reader / writer (non-contact reader / writer) 22, and a non-contact IC card (information terminal device) 23.

非接触ICカード21および非接触ICカード23は、耐タンパ性を備えたセキュアなメモリ(後述する受信バッファと送信バッファ)を内部に有している。リーダライタ22は、耐タンパ性を備えており、非接触ICカード21または非接触ICカード23に対してコマンドを送信したり、非接触ICカード21または非接触ICカード23からのレスポンスを受信する。   The non-contact IC card 21 and the non-contact IC card 23 have a tamper-resistant secure memory (a reception buffer and a transmission buffer described later) inside. The reader / writer 22 has tamper resistance, and transmits a command to the non-contact IC card 21 or the non-contact IC card 23 or receives a response from the non-contact IC card 21 or the non-contact IC card 23. .

非接触ICカード21、リーダライタ22、および非接触ICカード23のそれぞれは、無線通信を行う機能を有するものとし、複数の通信プロトコルには、NFC(Near Field Communication)が含まれるものとする。   Each of the non-contact IC card 21, the reader / writer 22, and the non-contact IC card 23 has a function of performing wireless communication, and the plurality of communication protocols include NFC (Near Field Communication).

NFCは、他の機器との間で、単一の周波数の搬送波を使用した、電磁誘導による近接通信の通信プロトコルで、搬送波の周波数としては、例えば、ISM(Industrial Scientific Medical)バンドの13.56MHzなどが採用される。   NFC is a communication protocol for proximity communication using electromagnetic induction with other devices using a single frequency carrier wave, such as 13.56 MHz in the ISM (Industrial Scientific Medical) band, for example. Is adopted.

ここで、近接通信とは、通信する装置同士の距離が、数10cm以内となって可能となる通信を意味し、通信する装置同士(の筐体)が接触して行う通信も含まれる。   Here, the proximity communication means communication that enables a distance between communicating devices within several tens of centimeters, and includes communication performed by contacting (communicating with) the communicating devices.

また、非接触ICカード21(非接触ICカード23)は、例えば、ISO/IEC (International Organization for Standardization / International Electrotechnical Commission)15693の規格に準拠した非接触の通信をリーダライタ22との間で行う。すなわち、非接触ICカード21(非接触ICカード23)は、リーダライタ22が発する電磁波(電波)から所定以上の電力を検出した(所定以上の電力が得られた)場合に動作可能となり、非接触ICカード23(非接触ICカード21)またはリーダライタ22と、電磁波により通信する。   Further, the non-contact IC card 21 (non-contact IC card 23) performs non-contact communication with the reader / writer 22 in accordance with, for example, ISO / IEC (International Organization for Standardization / International Electrotechnical Commission) 15653 standard. . That is, the non-contact IC card 21 (non-contact IC card 23) becomes operable when a predetermined power or higher is detected from electromagnetic waves (radio waves) emitted from the reader / writer 22 (a predetermined power or higher is obtained). It communicates with the contact IC card 23 (non-contact IC card 21) or the reader / writer 22 by electromagnetic waves.

図2は、図1の非接触ICカード21の構成例を示すブロック図である。   FIG. 2 is a block diagram showing a configuration example of the non-contact IC card 21 of FIG.

非接触ICカード21には、アンテナ41、送受信部42、A/D(アナログ/デジタル)変換・デモジュレーション部43、受信バッファ44、ICカードOS45、ICカードOS46、送信バッファ47、およびD/A(デジタル/アナログ)変換・モジュレーション部48が設けられている。   The non-contact IC card 21 includes an antenna 41, a transmission / reception unit 42, an A / D (analog / digital) conversion / demodulation unit 43, a reception buffer 44, an IC card OS 45, an IC card OS 46, a transmission buffer 47, and a D / A. A (digital / analog) conversion / modulation unit 48 is provided.

アンテナ41は、閉ループのコイルを構成しており、このコイルに流れる電流が変化することで、電磁波を出力する。また、アンテナ41としてのコイルを通る磁束が変化することで、アンテナ41に電流が流れる。   The antenna 41 constitutes a closed loop coil, and outputs an electromagnetic wave when the current flowing through the coil changes. In addition, a current flows through the antenna 41 as the magnetic flux passing through the coil as the antenna 41 changes.

送受信部42は、アンテナ41を介して、他の装置(例えば、リーダライタ22や非接触ICカード23)から送信されてきたデータを受信したり、D/A変換・モジュレーション部48から供給されてきたデータを、アンテナ41を介して他の装置(例えば、リーダライタ22や非接触ICカード23)に送信する処理を実行する。   The transmission / reception unit 42 receives data transmitted from another device (for example, the reader / writer 22 or the non-contact IC card 23) via the antenna 41, or is supplied from the D / A conversion / modulation unit 48. The data is transmitted to another device (for example, the reader / writer 22 or the non-contact IC card 23) via the antenna 41.

具体的には、送受信部42には、送信部61と受信部62とが設けられている。送信部61は、D/A変換・モジュレーション部48から供給された、送信するデータに対する搬送波(所定の単一の周波数の搬送波を放射させるための電流としての搬送波)を変調した電磁波を、アンテナ41に送信する。これにより、アンテナ41からは、送信するデータに従って搬送波が変調された電磁波が放射される。受信部62は、アンテナ41に流れる電流を受信し、同調と検波を行い、これをA/D変換・デモジュレーション部43に供給する。   Specifically, the transmission / reception unit 42 includes a transmission unit 61 and a reception unit 62. The transmission unit 61 converts an electromagnetic wave, which is supplied from the D / A conversion / modulation unit 48, into which the carrier wave (the carrier wave as a current for radiating a carrier wave of a predetermined single frequency) with respect to the data to be transmitted is modulated. Send to. As a result, an electromagnetic wave having a carrier wave modulated in accordance with data to be transmitted is radiated from the antenna 41. The receiving unit 62 receives the current flowing through the antenna 41, performs tuning and detection, and supplies this to the A / D conversion / demodulation unit 43.

A/D変換・デモジュレーション部43は、受信部62からのデータをA/D変換した後、復調(デモジュレーション)し、これを、受信バッファ44に供給する。   The A / D conversion / demodulation unit 43 performs A / D conversion on the data from the reception unit 62, demodulates (demodulates), and supplies this to the reception buffer 44.

受信バッファ44は、A/D変換・デモジュレーション部43から供給されてきたデータを一時格納(バッファリング)する。   The reception buffer 44 temporarily stores (buffers) the data supplied from the A / D conversion / demodulation unit 43.

ICカードOS45とICカードOS46は、受信バッファ44にデータが格納された場合、そのデータを取得し、取得したデータに対応する処理を実行する。具体的には、ICカードOS45とICカードOS46は、それぞれファイルシステムを識別するファイルシステムIDが付されたファイルシステムを有しており、各ICカードOS(ICカードOS45またはICカードOS46)は、取得したコマンド(データ)に、自分自身が対応するファイルシステムを識別するファイルシステムIDが指定されている場合に、そのコマンドに対応する処理を実行する。なお、ICカードOS45とICカードOS46との間(すなわち、各ファイルシステム間)は、ファイアウォールにより保護されている。   When data is stored in the reception buffer 44, the IC card OS 45 and the IC card OS 46 acquire the data and execute processing corresponding to the acquired data. Specifically, each of the IC card OS 45 and the IC card OS 46 has a file system with a file system ID for identifying the file system, and each IC card OS (IC card OS 45 or IC card OS 46) When the acquired command (data) is designated with a file system ID for identifying the file system corresponding to itself, processing corresponding to the command is executed. Note that a firewall is protected between the IC card OS 45 and the IC card OS 46 (that is, between each file system).

具体的には、ICカードOS45には、ファイルシステムID#1のファイルシステム51が格納されており、ICカードOS45は、そのファイルシステムID#1のファイルシステム51に対応する処理を実行する。例えば、受信バッファ44から取得したデータが、ファイルシステムID#1のファイルシステム51に対するコマンドである場合(すなわち、コマンドの送信先がファイルシステムID#1である場合)、ICカードOS45は、ファイルシステムID#1のファイルシステム51に基づいて、そのコマンドに対応する処理を実行する。ICカードOS45は、コマンドに対応して実行した結果(以下、処理結果と称する)を、送信バッファ47に供給する。   Specifically, the file system 51 with the file system ID # 1 is stored in the IC card OS 45, and the IC card OS 45 executes processing corresponding to the file system 51 with the file system ID # 1. For example, when the data acquired from the reception buffer 44 is a command for the file system 51 with the file system ID # 1 (that is, when the transmission destination of the command is the file system ID # 1), the IC card OS 45 Based on the file system 51 of ID # 1, processing corresponding to the command is executed. The IC card OS 45 supplies a result (hereinafter referred to as a processing result) executed in response to the command to the transmission buffer 47.

また、ICカードOS46には、ファイルシステムID#2のファイルシステム52が格納されており、ICカードOS46は、そのファイルシステムID#2のファイルシステム52に対応する処理を実行する。例えば、受信バッファ44から取得したデータが、ファイルシステムID#2のファイルシステム52に対するコマンドである場合(すなわち、コマンドの送信先がファイルシステムID#2である場合)、ICカードOS46は、ファイルシステムID#2のファイルシステム52に基づいて、そのコマンドに対応する処理を実行する。ICカードOS46は、コマンドに対応して実行した結果(以下、処理結果と称する)を、送信バッファ47に供給する。   The IC card OS 46 stores a file system 52 having a file system ID # 2, and the IC card OS 46 executes processing corresponding to the file system 52 having the file system ID # 2. For example, when the data acquired from the reception buffer 44 is a command for the file system 52 with the file system ID # 2, that is, when the command transmission destination is the file system ID # 2, the IC card OS 46 Based on the file system 52 of ID # 2, processing corresponding to the command is executed. The IC card OS 46 supplies a result (hereinafter referred to as a processing result) executed in response to the command to the transmission buffer 47.

すなわち、ICカードOS45は、受信バッファ44から取得したデータが、ファイルシステムID#1のファイルシステム51に対するコマンドではなく、ファイルシステムID#2のファイルシステム52に対するコマンドである場合、そのコマンドに対応する処理は実行しない。また、ICカードOS46は、受信バッファ44から取得したデータが、ファイルシステムID#2のファイルシステム52に対するコマンドではなく、ファイルシステムID#1のファイルシステム51に対するコマンドである場合、そのコマンドに対応する処理は実行しない。換言すれば、ICカードOS45とICカードOS46は、自分自身が有するファイルシステムのファイルシステムID以外のファイルシステムIDを指定するコマンドが受信バッファ44から供給されてきた場合には、そのコマンドに対応する処理を実行しない。   That is, if the data acquired from the reception buffer 44 is not a command for the file system 51 with the file system ID # 1 but a command for the file system 52 with the file system ID # 2, the IC card OS 45 corresponds to the command. Processing is not executed. Further, when the data acquired from the reception buffer 44 is not a command for the file system 52 with the file system ID # 2 but a command for the file system 51 with the file system ID # 1, the IC card OS 46 corresponds to the command. Processing is not executed. In other words, when a command specifying a file system ID other than the file system ID of the file system of the IC card OS 45 and the IC card OS 46 is supplied from the reception buffer 44, the IC card OS 45 and the IC card OS 46 correspond to the command. Do not execute processing.

送信バッファ47は、ICカードOS45またはICカードOS46から供給されてきた処理結果を一時格納(バッファリング)するとともに、それを、受信バッファ44にも供給する。このとき、送信バッファ47と受信バッファ44には、同一のデータ(処理結果)が格納される。このようにすることで、送信バッファ47から受信バッファ44に供給された処理結果が、あたかも、リーダライタ22などから受信されたものとみなすことができる。   The transmission buffer 47 temporarily stores (buffers) the processing result supplied from the IC card OS 45 or the IC card OS 46 and also supplies it to the reception buffer 44. At this time, the same data (processing result) is stored in the transmission buffer 47 and the reception buffer 44. In this way, it can be considered that the processing result supplied from the transmission buffer 47 to the reception buffer 44 is received from the reader / writer 22 or the like.

D/A変換・モジュレーション部48は、送信バッファ47にデータ(例えば、処理結果)が格納された場合、そのデータを取得し、これを変調(モジュレーション)した後、D/A変換し、これを、送受信部42の送信部61に供給する。   When data (for example, a processing result) is stored in the transmission buffer 47, the D / A conversion / modulation unit 48 acquires the data, modulates (modulates) the data, performs D / A conversion, and converts the data. , And supplied to the transmission unit 61 of the transmission / reception unit 42.

送信部61は、上述したように、D/A変換・モジュレーション部48から供給された、送信するデータに対する搬送波(所定の単一の周波数の搬送波を放射させるための電流としての搬送波)を変調した電磁波を、アンテナ41に送信することで、他の装置に対してデータを送信する。   As described above, the transmission unit 61 modulates a carrier wave (a carrier wave as a current for radiating a carrier wave of a predetermined single frequency) supplied from the D / A conversion / modulation unit 48 to data to be transmitted. By transmitting electromagnetic waves to the antenna 41, data is transmitted to another device.

このように、ICカードOS45またはICカードOS46による処理結果は、まず、送信バッファ47に格納される。次に、送信バッファ47は、この処理結果を、リーダライタ22などの外部の機器に送信させるとともに、受信バッファ44に供給する。受信バッファ44に格納された処理結果は、再び、ICカードOS45とICカードOS46とに取得され、送信先のファイルシステムIDが一致する場合に、そのICカードOSにおいて処理が実行されるので、非接触ICカード21内で、リーダライタ22からコマンドを受けなくても、処理の実行を続けることができる構成とされている。   As described above, the processing result by the IC card OS 45 or the IC card OS 46 is first stored in the transmission buffer 47. Next, the transmission buffer 47 transmits the processing result to an external device such as the reader / writer 22 and supplies the result to the reception buffer 44. The processing result stored in the reception buffer 44 is acquired again by the IC card OS 45 and the IC card OS 46, and when the destination file system IDs match, the processing is executed in the IC card OS. The contact IC card 21 can continue to execute the process without receiving a command from the reader / writer 22.

なお、図1の非接触ICカード23の構成は、上述した図2の非接触ICカード21と同様に構成されるため、その説明は省略する。   The configuration of the non-contact IC card 23 in FIG. 1 is the same as that of the non-contact IC card 21 in FIG.

次に、図3を参照して図1のリーダライタ22の構成例を説明する。   Next, a configuration example of the reader / writer 22 of FIG. 1 will be described with reference to FIG.

リーダライタ22には、アンテナ81、送受信部82、A/D変換・デモジュレーション部83、制御部84、およびD/A変換・モジュレーション部85が設けられている。   The reader / writer 22 is provided with an antenna 81, a transmission / reception unit 82, an A / D conversion / demodulation unit 83, a control unit 84, and a D / A conversion / modulation unit 85.

アンテナ81は、閉ループのコイルを構成しており、このコイルに流れる電流が変化することで、電磁波を出力する。また、アンテナ81としてのコイルを通る磁束が変化することで、アンテナ81に電流が流れる。   The antenna 81 forms a closed loop coil, and outputs an electromagnetic wave when the current flowing through the coil changes. In addition, a current flows through the antenna 81 as the magnetic flux passing through the coil as the antenna 81 changes.

送受信部82は、アンテナ81を介して、他の装置(例えば、非接触ICカード21や非接触ICカード23)から送信されてきたデータを受信したり、D/A変換・モジュレーション部85から供給されてきたデータを、アンテナ81を介して他の装置(例えば、非接触ICカード21や非接触ICカード23)に送信する処理を実行する。   The transmission / reception unit 82 receives data transmitted from another device (for example, the non-contact IC card 21 or the non-contact IC card 23) via the antenna 81, or is supplied from the D / A conversion / modulation unit 85. A process of transmitting the received data to another device (for example, the non-contact IC card 21 or the non-contact IC card 23) through the antenna 81 is executed.

具体的には、送受信部82には、送信部91と受信部92とが設けられている。送信部91は、D/A変換・モジュレーション部85から供給された、送信するデータに対する搬送波(所定の単一の周波数の搬送波を放射させるための電流としての搬送波)を変調した電磁波を、アンテナ81に送信する。これにより、アンテナ81からは、送信するデータに従って搬送波が変調された電磁波が放射される。受信部92は、アンテナ81に流れる電流を受信し、同調と検波を行い、これをA/D変換・デモジュレーション部83に供給する。   Specifically, the transmission / reception unit 82 includes a transmission unit 91 and a reception unit 92. The transmission unit 91 converts an electromagnetic wave, which is supplied from the D / A conversion / modulation unit 85, into which the carrier wave (the carrier wave as a current for radiating a carrier wave of a predetermined single frequency) with respect to data to be transmitted is modulated. Send to. As a result, the antenna 81 emits an electromagnetic wave whose carrier wave is modulated in accordance with data to be transmitted. The receiving unit 92 receives the current flowing through the antenna 81, performs tuning and detection, and supplies this to the A / D conversion / demodulation unit 83.

A/D変換・デモジュレーション部83は、受信部92からのデータをA/D変換した後、復調(デモジュレーション)し、これを、制御部84に供給する。   The A / D conversion / demodulation unit 83 performs A / D conversion on the data from the reception unit 92, demodulates (demodulates), and supplies this to the control unit 84.

制御部84は、A/D変換・デモジュレーション部83から供給されてきたデータに基づく処理を実行したり、送信するデータを、D/A変換・モジュレーション部85に対して供給したりする。   The control unit 84 executes processing based on the data supplied from the A / D conversion / demodulation unit 83 and supplies data to be transmitted to the D / A conversion / modulation unit 85.

具体的には、制御部84には、制御処理部93、判定部94、およびタイマ95が設けられており、制御部84の内部では、それぞれデータの授受が可能である。制御処理部93は、非接触ICカード21や非接触ICカード23に対するコマンドを生成したり、非接触ICカード21や非接触ICカード23から供給されてきたレスポンスに対応する処理を実行する。   Specifically, the control unit 84 is provided with a control processing unit 93, a determination unit 94, and a timer 95, and data can be exchanged inside the control unit 84. The control processing unit 93 generates a command for the non-contact IC card 21 or the non-contact IC card 23 or executes a process corresponding to a response supplied from the non-contact IC card 21 or the non-contact IC card 23.

判定部94は、非接触ICカード21や非接触ICカード23から供給されてきたレスポンス(データ)が、自分自身(すなわち、リーダライタ22)に対するレスポンスであるか否かを判定する。例えば、非接触ICカード21や非接触ICカード23から供給されてきたレスポンス(データ)の送信先に、自分自身(リーダライタ22)が指定されている場合には、自分自身に対するレスポンスであると判定し、他の装置のID(例えば、他のファイルシステムID)が指定されている場合には、自分自身に対するレスポンスでないと判定する。   The determination unit 94 determines whether or not the response (data) supplied from the non-contact IC card 21 or the non-contact IC card 23 is a response to itself (that is, the reader / writer 22). For example, if oneself (reader / writer 22) is designated as the transmission destination of the response (data) supplied from the non-contact IC card 21 or the non-contact IC card 23, the response is for itself. If an ID of another device (for example, another file system ID) is specified, it is determined that the response is not for itself.

タイマ95は、制御処理部93により生成されたコマンドが送信された後、そのコマンドに対応するレスポンスが送信されてくるまでの待機時間を設定する。例えば、タイマ95は、制御処理部93が生成したコマンドが、D/A変換・モジュレーション部85、送受信部82の送信部91、およびアンテナ81を介して、非接触ICカード21(または非接触ICカード23)に送信された場合、このコマンドに対するレスポンスが送信されてくるまでの待機時間T1を設定する。   The timer 95 sets a waiting time until a response corresponding to the command is transmitted after the command generated by the control processing unit 93 is transmitted. For example, in the timer 95, the command generated by the control processing unit 93 is transmitted via the D / A conversion / modulation unit 85, the transmission unit 91 of the transmission / reception unit 82, and the antenna 81. When it is transmitted to the card 23), a waiting time T1 until a response to this command is transmitted is set.

次に、図4を参照して、図3の制御処理部93が生成するコマンドのパケット構造を説明する。すなわち、図4は、リーダライタ22から非接触ICカード21や非接触ICカード23に対して送信されるコマンド120のパケット構造の例である。   Next, a packet structure of a command generated by the control processing unit 93 in FIG. 3 will be described with reference to FIG. That is, FIG. 4 shows an example of the packet structure of the command 120 transmitted from the reader / writer 22 to the non-contact IC card 21 or the non-contact IC card 23.

図4に示されるように、コマンド120には、Command data(コマンドデータ)121、File System ID(ファイルシステムID)122、Data(データ)123、およびCRC(Cyclic Redundancy Check)124が含まれている。   As shown in FIG. 4, the command 120 includes Command data 121, File System ID 122, Data 123, and CRC (Cyclic Redundancy Check) 124. .

コマンドデータ121は、そのコマンド120の送信先の装置に実行させるための指令(命令)である。ファイルシステムID122は、そのコマンドを実行させるファイルシステムを特定するためのファイルシステムIDである。例えば、非接触ICカード21のICカードOS45に実行させるコマンドを送信する場合、ファイルシステムIDはファイルシステムID#1となる。すなわち、送信先のファイルシステムIDが、コマンド120のファイルシステムID122に記述される。データ123は、コマンドデータ121の指令を実行するときに用いられるデータである。例えば、100円を課金するコマンドを送信する場合、コマンドデータ121は、「課金処理」の指令とされ、データ123は、「100円」とされる。CRC124は、巡回冗長検査のためのデータであり、受信側でそのデータが正しく受信できたか否かを検査するために用いられる。   The command data 121 is a command (command) for causing the device that is the transmission destination of the command 120 to execute. The file system ID 122 is a file system ID for specifying a file system for executing the command. For example, when a command to be executed by the IC card OS 45 of the non-contact IC card 21 is transmitted, the file system ID is the file system ID # 1. That is, the destination file system ID is described in the file system ID 122 of the command 120. The data 123 is data used when executing the command of the command data 121. For example, when a command for charging 100 yen is transmitted, the command data 121 is a command for “charging process”, and the data 123 is “100 yen”. The CRC 124 is data for cyclic redundancy check, and is used for checking whether or not the data has been correctly received on the receiving side.

なお、このCRC124を用いた検査は、図2の非接触ICカード21のA/D変換・デモジュレーション部43によって実行されるが、本発明とは直接関係がないので、その詳細は省略する。   The inspection using the CRC 124 is executed by the A / D conversion / demodulation unit 43 of the non-contact IC card 21 of FIG. 2, but since it is not directly related to the present invention, its details are omitted.

このように、コマンド120には、そのコマンドに対する処理を実行させるファイルシステムを特定するファイルシステムIDが含まれる。なお、送信元を特定するデータを含める場合、例えば、コマンドデータ121に格納されるようにしてもよいし、送信元を特定するデータを格納する領域を、別途設けるようにしてもよい。   As described above, the command 120 includes a file system ID for specifying a file system for executing processing for the command. When data specifying the transmission source is included, for example, it may be stored in the command data 121, or an area for storing data specifying the transmission source may be provided separately.

図5は、リーダライタ22と非接触ICカード21の各部とにおいて実行されるデータの送受信処理を説明するフローチャートである。なお、図5は、リーダライタ22、非接触ICカード21の受信バッファ44、送信バッファ47、ICカードOS45、およびICカードOS46の各部において実行される処理をフローチャートにしているものである。また、この処理は、例えば、リーダライタ22に対して、非接触ICカード21にコマンドを送信するようユーザから指令され、非接触ICカード21が近接された場合などに開始される。さらに、図中、実線は、送信されるデータに含まれる送信先と、送信される側が一致することを示し(すなわち、送信されるデータが有効に用いられることを示し)、波線は、送信されるデータに含まれる送信先と、送信される側が一致しないことを示している。   FIG. 5 is a flowchart for explaining data transmission / reception processing executed by the reader / writer 22 and each part of the non-contact IC card 21. FIG. 5 is a flowchart showing processing executed in each part of the reader / writer 22, the reception buffer 44, the transmission buffer 47, the IC card OS 45, and the IC card OS 46 of the non-contact IC card 21. This process is started, for example, when the user instructs the reader / writer 22 to send a command to the non-contact IC card 21 and the non-contact IC card 21 comes close. Further, in the figure, the solid line indicates that the transmission destination included in the transmitted data matches the transmission side (that is, the transmitted data is used effectively), and the wavy line is transmitted. This indicates that the transmission destination included in the received data does not match the transmission side.

ステップS11において、リーダライタ22は、ファイルシステムID#1を含むコマンドを送信する。具体的には、リーダライタ22は、図4のファイルシステムID122を、「ファイルシステムID#1」とするコマンド120を、非接触ICカード21に対して送信する。このとき、リーダライタ22は、コマンド120に対応するレスポンスの待ち時間(ウエイト時間)を、待ち時間T1と設定する(図中、R/Wウエイト時間と記述している)。なお、以下において、ステップS11の処理で生成された、図4のコマンド120のファイルシステムID122が「ファイルシステムID#1」とされたコマンド120を、コマンド120−1と称する。コマンド120−1は、図中、「ID#1付きコマンド」に対応する。   In step S11, the reader / writer 22 transmits a command including the file system ID # 1. Specifically, the reader / writer 22 transmits a command 120 that sets the file system ID 122 of FIG. 4 to “file system ID # 1” to the non-contact IC card 21. At this time, the reader / writer 22 sets a response waiting time (wait time) corresponding to the command 120 as a waiting time T1 (denoted as R / W wait time in the figure). In the following, the command 120 generated by the process of step S11 and having the file system ID 122 of the command 120 in FIG. 4 as “file system ID # 1” is referred to as a command 120-1. The command 120-1 corresponds to “command with ID # 1” in the figure.

これに対して、非接触ICカード21の受信バッファ44は、ステップS31において、リーダライタ22から供給されてきたコマンド120−1を受信し、一時格納する。具体的には、受信バッファ44は、リーダライタ22から供給されてきたコマンド120−1を、アンテナ41、受信部62、およびA/D変換・デモジュレーション部43を介して受信し、一時格納する。   On the other hand, the reception buffer 44 of the non-contact IC card 21 receives and temporarily stores the command 120-1 supplied from the reader / writer 22 in step S31. Specifically, the reception buffer 44 receives the command 120-1 supplied from the reader / writer 22 via the antenna 41, the reception unit 62, and the A / D conversion / demodulation unit 43, and temporarily stores the command 120-1. .

受信バッファ44にコマンド120−1が格納されると、ICカードOS45とICカードOS46とからそのコマンド120−1(データ)の読み出しが要求されるので、ステップS32において、受信バッファ44は、格納しているコマンド120−1を、ファイルシステムID#1のファイルシステム51を有するICカードOS45と、ファイルシステムID#2のファイルシステム52を有するICカードOS46とに供給する。   When the command 120-1 is stored in the reception buffer 44, the reading of the command 120-1 (data) is requested from the IC card OS 45 and the IC card OS 46. Therefore, in step S32, the reception buffer 44 stores the command 120-1. The command 120-1 is supplied to the IC card OS 45 having the file system 51 with the file system ID # 1 and the IC card OS 46 having the file system 52 with the file system ID # 2.

これに対して、ICカードOS45は、ステップS71において、受信バッファ44に格納されたコマンド120−1の供給を受け付け(取得し)、そのコマンド120−1に含まれる送信先のファイルシステムIDと、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、コマンド120−1は、ファイルシステムID#1を送信先としているので(図4のファイルシステムID122がファイルシステムID#1であるので)、ICカードOS45は、一致すると判定する。   On the other hand, in step S71, the IC card OS 45 accepts (acquires) the supply of the command 120-1 stored in the reception buffer 44, and the transmission destination file system ID included in the command 120-1; It is determined whether or not the file system ID corresponding to the file system provided for itself matches. In this example, since the command 120-1 uses the file system ID # 1 as the transmission destination (because the file system ID 122 in FIG. 4 is the file system ID # 1), the IC card OS 45 determines that they match.

そして、ICカードOS45は、そのコマンド120−1に含まれるコマンドデータ121に対する処理を、データ123に基づいて実行し、ステップS72において、その処理結果を送信バッファ47に供給する。なお、このとき、ICカードOS45が実行した処理の結果、ファイルシステムID#2に実行させるための処理があると判定されたため、この処理結果は、送信先のファイルシステムIDを、「ファイルシステムID#2」としたコマンド120(図4のファイルシステムID122がファイルシステムID#2であるコマンド120)となる。なお、以下において、ICカードOS45によるコマンド120−1に対する処理を実行した結果である、図4のコマンド120のファイルシステムID122が「ファイルシステムID#2」とされたコマンド120を、コマンド120−2と称する。コマンド120−2は、図中、「ID#2付きコマンド」に対応する。   Then, the IC card OS 45 executes processing for the command data 121 included in the command 120-1 based on the data 123, and supplies the processing result to the transmission buffer 47 in step S72. At this time, as a result of the process executed by the IC card OS 45, it is determined that there is a process for causing the file system ID # 2 to execute. Therefore, this process result indicates that the file system ID of the transmission destination is “file system ID”. Command 120 (command 120 in which the file system ID 122 in FIG. 4 is the file system ID # 2). In the following, the command 120-2 in which the file system ID 122 of the command 120 in FIG. 4 is “file system ID # 2”, which is the result of executing the processing for the command 120-1 by the IC card OS 45, Called. The command 120-2 corresponds to “command with ID # 2” in the figure.

一方、受信バッファ44によりステップS32において供給されたコマンド120−1は、ICカードOS46にも供給されるので、ICカードOS46は、ステップS91において、これを受け付け(取得し)、そのコマンド120−1に含まれる送信先のファイルシステムIDと、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、コマンド120−1は、ファイルシステムID#1を送信先としているので(図4のファイルシステムID122がファイルシステムID#1であるので)、ICカードOS46は、一致しないと判定し、そのまま待機する。   On the other hand, since the command 120-1 supplied in step S32 by the reception buffer 44 is also supplied to the IC card OS 46, the IC card OS 46 accepts (acquires) the command 120-1 in step S91. It is determined whether the file system ID of the transmission destination included in the file system ID matches the file system ID corresponding to the file system provided for itself. In this example, since the command 120-1 uses the file system ID # 1 as the transmission destination (because the file system ID 122 in FIG. 4 is the file system ID # 1), the IC card OS 46 determines that they do not match. Wait as it is.

また、送信バッファ47は、ステップS51において、ICカードOS45によりステップS72の処理で送信バッファ47に供給された処理結果、すなわち、ファイルシステムID#2を含むコマンド120−2を受け付け、これを格納するとともに、受信バッファ44に供給する。受信バッファ44は、ステップS33において、送信バッファ47から供給されたコマンド120−2(ファイルシステムID#2を含むコマンド120−2)を格納する。また、送信バッファ47にデータ(コマンド120−2)が格納されると、ステップS52において、D/A変換・モジュレーション部48によりそのデータが読み出され、送信部61、およびアンテナ41を介して、リーダライタ22に送信される。   Further, the transmission buffer 47 receives the processing result supplied to the transmission buffer 47 by the processing of step S72 by the IC card OS 45 in step S51, that is, the command 120-2 including the file system ID # 2, and stores it. At the same time, it is supplied to the reception buffer 44. In step S33, the reception buffer 44 stores the command 120-2 (command 120-2 including the file system ID # 2) supplied from the transmission buffer 47. When the data (command 120-2) is stored in the transmission buffer 47, the data is read by the D / A conversion / modulation unit 48 in step S52, and is transmitted via the transmission unit 61 and the antenna 41. It is transmitted to the reader / writer 22.

リーダライタ22は、ステップS12において、送信バッファ47に格納され、送信されたコマンド120−2(ファイルシステムID#2を含むコマンド120−2)を受信する。リーダライタ22は、このコマンド120−2のファイルシステムIDをみて、自分自身への応答でないことを確認すると、ステップS11の処理で設定した待ち時間T1をさらに延長し、時間T2とする(図中、R/W延長ウエイト時間と記述している)。   In step S12, the reader / writer 22 receives the command 120-2 (command 120-2 including the file system ID # 2) stored and transmitted in the transmission buffer 47. When the reader / writer 22 sees the file system ID of the command 120-2 and confirms that it is not a response to itself, the reader / writer 22 further extends the waiting time T1 set in the process of step S11 to a time T2 (in the figure). , R / W extension weighting time).

一方、ステップS33の処理で受信バッファ44にデータ(ファイルシステムID#2を含むコマンド120−2)が格納されると、ICカードOS45とICカードOS46からそのデータの読み出しが要求されるので、受信バッファ44は、ステップS34において、格納しているコマンド120−2を、ファイルシステムID#1のファイルシステム51を有するICカードOS45と、ファイルシステムID#2のファイルシステム52を有するICカードOS46とに供給する。   On the other hand, when data (command 120-2 including the file system ID # 2) is stored in the reception buffer 44 in the process of step S33, the IC card OS 45 and the IC card OS 46 request to read the data. In step S34, the buffer 44 transfers the stored command 120-2 to the IC card OS 45 having the file system 51 with the file system ID # 1 and the IC card OS 46 having the file system 52 with the file system ID # 2. Supply.

これに対して、ICカードOS45は、ステップS73において、受信バッファ44に格納されたコマンド120−2の供給を受け付け(取得し)、そのコマンド120−2に含まれる送信先のファイルシステムIDと、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、コマンド120−2は、ファイルシステムID#2を送信先としているので(図4のファイルシステムID122がファイルシステムID#2であるので)、ICカードOS45は、一致しないと判定し、そのまま待機する。   On the other hand, the IC card OS 45 accepts (acquires) the supply of the command 120-2 stored in the reception buffer 44 in step S73, and the file system ID of the transmission destination included in the command 120-2; It is determined whether or not the file system ID corresponding to the file system provided for itself matches. In this example, since the command 120-2 uses the file system ID # 2 as the transmission destination (because the file system ID 122 in FIG. 4 is the file system ID # 2), the IC card OS 45 determines that they do not match. Wait as it is.

一方、受信バッファ44によりステップS34において供給されたコマンド120−2は、ICカードOS46にも供給されるので、ICカードOS46は、ステップS92において、これを受け付け(取得し)、そのコマンド120に含まれる送信先のファイルシステムIDと、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、コマンド120−2は、ファイルシステムID#2を送信先としているので(図4のファイルシステムID122がファイルシステムID#2であるので)、ICカードOS46は、一致すると判定する。   On the other hand, since the command 120-2 supplied in step S34 by the reception buffer 44 is also supplied to the IC card OS 46, the IC card OS 46 accepts (acquires) this in step S92 and is included in the command 120. It is determined whether or not the destination file system ID matches the file system ID corresponding to the file system provided in itself. In this example, since the command 120-2 uses the file system ID # 2 as the transmission destination (because the file system ID 122 in FIG. 4 is the file system ID # 2), the IC card OS 46 determines that they match.

そして、ICカードOS46は、そのコマンド120−2に含まれるコマンドデータ121に対する処理を、データ123に基づいて実行し、ステップS93において、その処理結果を送信バッファ47に供給する。なお、このとき、ICカードOS46が実行した処理の結果は、ファイルシステムID#2のファイルシステム52を実行するICカードOS46から、ファイルシステムID#1のファイルシステム51を実行するICカードOS45へのレスポンスとなるので、この処理結果は、送信元のファイルシステムIDを「ファイルシステムID#2」とし、送信先のファイルシステムIDを「ファイルシステムID#1」としたレスポンスとなる。すなわち、ファイルシステムID#1のファイルシステム51を備えるICカードOS45から送信されてきたコマンド120−2に対応する処理を、ファイルシステムID#2のファイルシステム52のICカードOS46が実行した結果、そのレスポンスは、ファイルシステムID#1のファイルシステム51に戻される。なお、レスポンスのパケット構造は、図4のコマンドパケット構造と基本的に同様であり、コマンドデータ121が「レスポンスデータ」とされる。また、このレスポンスは、図中、「ID#2→ID#1へのレスポンス」に対応する。   Then, the IC card OS 46 executes processing for the command data 121 included in the command 120-2 based on the data 123, and supplies the processing result to the transmission buffer 47 in step S93. At this time, the result of the processing executed by the IC card OS 46 is from the IC card OS 46 that executes the file system 52 with the file system ID # 2 to the IC card OS 45 that executes the file system 51 with the file system ID # 1. Since this is a response, this processing result is a response in which the file system ID of the transmission source is “file system ID # 2” and the file system ID of the transmission destination is “file system ID # 1”. That is, as a result of the processing corresponding to the command 120-2 transmitted from the IC card OS 45 provided with the file system 51 of the file system ID # 1 being executed by the IC card OS 46 of the file system 52 of the file system ID # 2, The response is returned to the file system 51 with the file system ID # 1. The packet structure of the response is basically the same as the command packet structure of FIG. 4, and the command data 121 is “response data”. Further, this response corresponds to “response to ID # 2 → ID # 1” in the figure.

また、送信バッファ47は、ステップS53において、ICカードOS46によりステップS93の処理で送信バッファ47に供給された処理結果、すなわち、ファイルシステムID#2のファイルシステム52を送信元とし、ファイルシステムID#1のファイルシステム51を送信先とするレスポンス(ID#2→ID#1へのレスポンス)を受け付け、これを格納するとともに、受信バッファ44に供給する。受信バッファ44は、ステップS35において、送信バッファ47から供給されたレスポンス(ファイルシステムID#2を送信元とし、ファイルシステムID#1を送信先とするレスポンス)を格納する。また、送信バッファ47にデータ(レスポンス)が格納されると、ステップS54において、D/A変換・モジュレーション部48によりそのデータが読み出され、送信部61、およびアンテナ41を介して、リーダライタ22に送信される。   Also, the transmission buffer 47 uses the processing result supplied to the transmission buffer 47 by the processing of step S93 by the IC card OS 46 in step S53, that is, the file system 52 of file system ID # 2 as the transmission source, and the file system ID # A response (response to ID # 2 → ID # 1) with the file system 51 of 1 as a transmission destination is received, stored, and supplied to the reception buffer 44. In step S35, the reception buffer 44 stores the response (response with the file system ID # 2 as the transmission source and the file system ID # 1 as the transmission destination) supplied from the transmission buffer 47. When the data (response) is stored in the transmission buffer 47, the data is read out by the D / A conversion / modulation unit 48 in step S54, and the reader / writer 22 is transmitted via the transmission unit 61 and the antenna 41. Sent to.

リーダライタ22は、ステップS13において、送信バッファ47に格納され、送信されたレスポンス(ファイルシステムID#2を送信元とし、ファイルシステムID#1を送信先とするレスポンス)を受信する。リーダライタ22は、このレスポンスの送信先のファイルシステムIDをみて、自分自身への応答でないことを確認すると、ステップS12の処理で延長しておいた待ち時間T2をさらに延長し、時間T3とする(図中、R/W再延長ウエイト時間と記述している)。   In step S13, the reader / writer 22 receives the response stored in the transmission buffer 47 and transmitted (response with the file system ID # 2 as the transmission source and the file system ID # 1 as the transmission destination). When the reader / writer 22 sees the file system ID of the transmission destination of this response and confirms that it is not a response to itself, the reader / writer 22 further extends the waiting time T2 extended in the process of step S12 to a time T3. (In the figure, R / W re-extension wait time is described).

一方、ステップS35の処理で受信バッファ44にデータ(送信元がファイルシステムID#2であり、送信先がファイルシステムID#1であるレスポンス)が格納されると、ICカードOS45とICカードOS46からそのデータの読み出しが要求されるので、受信バッファ44は、ステップS36において、格納しているレスポンスを、ファイルシステムID#1のファイルシステム51を有するICカードOS45と、ファイルシステムID#2のファイルシステム52を有するICカードOS46とに供給する。   On the other hand, when data (response that the transmission source is the file system ID # 2 and the transmission destination is the file system ID # 1) is stored in the reception buffer 44 in the process of step S35, the IC card OS45 and the IC card OS46 Since the reading of the data is requested, the reception buffer 44 sends the stored response to the IC card OS 45 having the file system 51 with the file system ID # 1 and the file system with the file system ID # 2 in step S36. And the IC card OS 46 having 52.

これに対して、ICカードOS45は、ステップS74において、受信バッファ44に格納されたレスポンス(送信元がファイルシステムID#2であり、送信先がファイルシステムID#1であるレスポンス)の供給を受け付け(取得し)、そのレスポンスに含まれる送信先のファイルシステムIDと、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、レスポンスは、送信元をファイルシステムID#2とし、送信先をファイルシステムID#1としているので、ICカードOS45は、一致すると判定する。   In response to this, in step S74, the IC card OS 45 accepts the supply of the response stored in the reception buffer 44 (response whose transmission source is the file system ID # 2 and whose transmission destination is the file system ID # 1). (Acquire) and determine whether or not the file system ID of the transmission destination included in the response matches the file system ID corresponding to the file system provided in itself. In the case of this example, the response uses the file system ID # 2 as the transmission source and the file system ID # 1 as the transmission destination, so the IC card OS 45 determines that they match.

そして、ICカードOS45は、そのレスポンスに含まれるレスポンスデータ(図4のコマンドデータ121に対応するレスポンスデータ)に対する処理を実行し、ステップS75において、その処理結果を送信バッファ47に供給する。なお、このとき、ICカードOS45が実行した処理の結果は、リーダライタ22へのレスポンスであるとされるので、この処理結果は、送信元をファイルシステムID#1とし、送信先をリーダライタ22とするレスポンスとなる。例えば、このレスポンスには、送信元をファイルシステムID#1とし、送信先を、リーダライタ22を特定するIDなどとするデータが含まれる。このレスポンスは、図中、「ID#1からのレスポンス」に対応する。   Then, the IC card OS 45 executes processing for the response data (response data corresponding to the command data 121 in FIG. 4) included in the response, and supplies the processing result to the transmission buffer 47 in step S75. At this time, the result of the processing executed by the IC card OS 45 is assumed to be a response to the reader / writer 22, so that the processing result is the file system ID # 1 and the transmission destination is the reader / writer 22. The response is as follows. For example, the response includes data having the transmission source as the file system ID # 1 and the transmission destination as the ID for identifying the reader / writer 22. This response corresponds to “response from ID # 1” in the figure.

一方、受信バッファ44によりステップS36において供給されたレスポンス(送信元がファイルシステムID#2であり、送信先がファイルシステムID#1であるレスポンス)は、ICカードOS46にも供給されるので、ICカードOS46は、ステップS94において、これを受け付け(取得し)、そのレスポンスに含まれる送信先のファイルシステムIDと、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、レスポンスは、送信元とファイルシステムID#2とし、送信先をファイルシステムID#1としているので、ICカードOS46は、一致しないと判定し、そのまま待機する。   On the other hand, the response (the response whose transmission source is the file system ID # 2 and the transmission destination is the file system ID # 1) supplied by the reception buffer 44 in step S36 is also supplied to the IC card OS 46. In step S94, the card OS 46 accepts (acquires) this, and whether or not the file system ID of the transmission destination included in the response matches the file system ID corresponding to the file system provided in itself. Determine whether. In this example, since the response is the transmission source and the file system ID # 2, and the transmission destination is the file system ID # 1, the IC card OS 46 determines that they do not match and waits as it is.

また、送信バッファ47は、ステップS55において、ICカードOS45によりステップS75の処理で送信バッファ47に供給されたレスポンス、すなわち、送信元をファイルシステムID#1とし、送信先をリーダライタ22とするレスポンスを受け付け、これを格納するとともに、受信バッファ44に供給する。受信バッファ44は、ステップS37において、送信バッファ47から供給されたレスポンス(送信元をファイルシステムID#1とし、送信先をリーダライタ22とするレスポンス)を格納する。また、送信バッファ47にデータ(レスポンス)が格納されると、ステップS56において、D/A変換・モジュレーション部48によりそのデータが読み出され、送信部61、およびアンテナ41を介して、リーダライタ22に送信される。   In addition, the transmission buffer 47 responds to the response supplied to the transmission buffer 47 by the processing of step S75 by the IC card OS 45 in step S55, that is, a response in which the transmission source is the file system ID # 1 and the transmission destination is the reader / writer 22. Is stored and supplied to the reception buffer 44. In step S37, the reception buffer 44 stores the response supplied from the transmission buffer 47 (response with the transmission source as the file system ID # 1 and the transmission destination as the reader / writer 22). When the data (response) is stored in the transmission buffer 47, the data is read by the D / A conversion / modulation unit 48 in step S56, and the reader / writer 22 is transmitted via the transmission unit 61 and the antenna 41. Sent to.

リーダライタ22は、ステップS14において、送信バッファ47に格納され、送信されたレスポンス(送信元をファイルシステムID#1とし、送信先をリーダライタ22とするレスポンス)を受信する。リーダライタ22は、このレスポンスをみて、自分自身への応答であることを確認すると、そのレスポンスに対応する所定の処理を実行し、処理を終了する。これにより、リーダライタ22は、ICカードOS45に設けられているファイルシステムID#1のファイルシステム51に送信したコマンド(コマンド120−1)に対応するレスポンスを、受信することができる。   In step S <b> 14, the reader / writer 22 receives the response stored in the transmission buffer 47 and transmitted (a response in which the transmission source is the file system ID # 1 and the transmission destination is the reader / writer 22). When the reader / writer 22 sees this response and confirms that it is a response to itself, the reader / writer 22 executes a predetermined process corresponding to the response and ends the process. Thereby, the reader / writer 22 can receive a response corresponding to the command (command 120-1) transmitted to the file system 51 of the file system ID # 1 provided in the IC card OS45.

一方、ステップS37の処理で受信バッファ44にデータ(送信元をファイルシステムID#1とし、送信先をリーダライタ22とするレスポンス)が格納されると、ICカードOS45とICカードOS46からそのデータの読み出しが要求されるので、受信バッファ44は、ステップS38において、格納しているレスポンスを、ファイルシステムID#1のファイルシステム51を有するICカードOS45と、ファイルシステムID#2のファイルシステム52を有するICカードOS46とに供給する。   On the other hand, when data (response with the transmission source as the file system ID # 1 and the transmission destination as the reader / writer 22) is stored in the reception buffer 44 in the process of step S37, the data is transferred from the IC card OS45 and the IC card OS46. Since the reading is requested, the reception buffer 44 has an IC card OS 45 having the file system 51 with the file system ID # 1 and a file system 52 with the file system ID # 2 as the stored response in step S38. To the IC card OS46.

これに対して、ICカードOS45は、ステップS76において、受信バッファ44に格納されたレスポンスの供給を受け付け(取得し)、そのレスポンスに含まれる送信先(のID)と、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、レスポンスは、リーダライタ22を特定するIDなどを送信先としているので、ICカードOS45は、一致しないと判定し、そのまま待機する。そして、処理は終了される。   On the other hand, in step S76, the IC card OS 45 accepts (acquires) the supply of the response stored in the reception buffer 44, and is provided with the transmission destination (its ID) included in the response and itself. It is determined whether or not the file system ID corresponding to the existing file system matches. In the case of this example, since the response uses an ID or the like for identifying the reader / writer 22 as the transmission destination, the IC card OS 45 determines that they do not match and waits as it is. Then, the process ends.

一方、受信バッファ44によりステップS38において供給されたレスポンスは、ICカードOS46にも供給されるので、ICカードOS46は、ステップS95において、これを受け付け(取得し)、そのレスポンスに含まれる送信先(のID)と、自分自身に備えられているファイルシステムに対応するファイルシステムIDとが一致するか否かを判定する。この例の場合、レスポンスは、リーダライタ22を特定するIDなどを送信先としているので、ICカードOS46は、一致しないと判定し、そのまま待機する。そして、処理は終了される。   On the other hand, since the response supplied in step S38 by the reception buffer 44 is also supplied to the IC card OS 46, the IC card OS 46 accepts (acquires) this in step S95, and the transmission destination ( ID) and the file system ID corresponding to the file system provided in itself match. In the case of this example, since the response uses an ID or the like for identifying the reader / writer 22 as the transmission destination, the IC card OS 46 determines that they do not match and waits as it is. Then, the process ends.

図5の処理により、リーダライタ22は、ファイルシステムID#1のファイルシステム51を有するICカードOS45に対するコマンドを送信するだけで、ファイルシステム51のICカードOS45とファイルシステム52のICカードOS46とで実行された処理結果をレスポンスとして受け取ることができる。また、リーダライタ22は、送信バッファ47に格納され、送信されてくるデータ(例えば、ステップS52の処理で送信されてくる、送信先をファイルシステムID#2とするコマンドや、ステップS54の処理で送信されてくる、送信先をファイルシステムID#1とするレスポンス)に基づいて、ファイルシステムID#1のファイルシステム51を有するICカードOS45に対するコマンドの待ち時間を延長するようにすることができ、エラーを防ぐことができる。   With the processing in FIG. 5, the reader / writer 22 simply transmits a command to the IC card OS 45 having the file system 51 with the file system ID # 1, and the IC card OS 45 of the file system 51 and the IC card OS 46 of the file system 52 The executed processing result can be received as a response. Further, the reader / writer 22 stores the data stored in the transmission buffer 47 and transmitted (for example, the command that is transmitted in the process of step S52 and the transmission destination is the file system ID # 2 or the process of step S54). Based on the transmitted response to the file system ID # 1 as the transmission destination), it is possible to extend the waiting time for the command to the IC card OS 45 having the file system 51 of the file system ID # 1; An error can be prevented.

さらに、ファイルシステムID#1のファイルシステム51を有するICカードOS45とファイルシステムID#2のファイルシステム52を有するICカードOS46との間で、一方が処理を実行した結果、他方のファイルシステムに実行させる処理があった場合に、一方のファイルシステムを有するICカードOSが、他方のファイルシステムを送信先とするデータを、送信バッファ47に一旦格納させるようにし、送信バッファ47に格納されたデータを、受信バッファ44にさらに格納させるようにすることで、受信バッファ44には、あたかも受信したとさせるデータが格納されることになり、直接ファイルシステムを有するICカードOS同士がアクセスすることを防ぐので、異なるファイルシステム間のやりとりを、安全に行うことができる。   Further, as a result of one of the processes executed between the IC card OS 45 having the file system 51 with the file system ID # 1 and the IC card OS 46 having the file system 52 with the file system ID # 2, the process is executed on the other file system. When there is processing to be performed, the IC card OS having one file system temporarily stores the data destined for the other file system in the transmission buffer 47, and the data stored in the transmission buffer 47 is stored. By further storing the data in the reception buffer 44, data that is assumed to be received is stored in the reception buffer 44, thereby preventing the IC card OSs having direct file systems from accessing each other. , Secure exchange between different file systems Ukoto can.

また、異なるファイルシステムを有するICカードOSが、一旦処理結果をリーダライタ22に戻さなくとも、非接触ICカード21の内部において、リーダライタ22に対するレスポンスを生成することができるので、リーダライタ22からのコマンドの受信回数を減らすことができ、もって、通信オーバーヘッドや速度の制限を減らすことができる。   Further, the IC card OS having a different file system can generate a response to the reader / writer 22 inside the non-contact IC card 21 without returning the processing result to the reader / writer 22 once. The number of times the command is received can be reduced, thereby reducing the communication overhead and speed limit.

次に、図5の処理をより詳細に説明するために、図3のリーダライタ22における処理の詳細を、図6のフローチャートを参照して説明する。なお、この処理は、例えば、リーダライタ22に対して、非接触ICカード21にコマンドを送信するようユーザから指令され、非接触ICカード21が近接された場合などに開始される。   Next, in order to describe the processing of FIG. 5 in more detail, the details of the processing in the reader / writer 22 of FIG. 3 will be described with reference to the flowchart of FIG. This process is started, for example, when the user instructs the reader / writer 22 to send a command to the non-contact IC card 21 and the non-contact IC card 21 comes close.

ステップS111において、リーダライタ22は、送信先のファイルシステムIDを含むコマンドを、非接触ICカード21に送信する。具体的には、図3の制御部84の制御処理部93は、近接された非接触ICカード21が有する複数のファイルシステムの中から、コマンドを送信するファイルシステムのファイルシステムIDを含めるよう、コマンドを生成し、これを送信するよう制御する。例えば、制御処理部93は、図4のファイルシステムID122を、「ファイルシステムID#1」とするコマンド120−1を生成し、これをD/A変換・モジュレーション部85に供給する。D/A変換・モジュレーション部85は、このコマンド120−1を変調した後、D/A変換し、これを、送受信部82の送信部91に供給する。送信部91は、この送信するデータに対する搬送波を変調した電磁波を、アンテナ81に送信することで、非接触ICカード21に対してコマンド120−1を送信する。なお、この処理は、基本的に、図5のステップS11に対応する処理である。   In step S <b> 111, the reader / writer 22 transmits a command including the transmission destination file system ID to the non-contact IC card 21. Specifically, the control processing unit 93 of the control unit 84 of FIG. 3 includes a file system ID of a file system that transmits a command from among a plurality of file systems of the adjacent non-contact IC card 21. Generates a command and controls to send it. For example, the control processing unit 93 generates a command 120-1 that sets the file system ID 122 of FIG. 4 to “file system ID # 1”, and supplies this to the D / A conversion / modulation unit 85. The D / A conversion / modulation unit 85 modulates the command 120-1, performs D / A conversion, and supplies this to the transmission unit 91 of the transmission / reception unit 82. The transmitter 91 transmits a command 120-1 to the non-contact IC card 21 by transmitting an electromagnetic wave obtained by modulating a carrier wave for the data to be transmitted to the antenna 81. This process is basically a process corresponding to step S11 in FIG.

ステップS112において、タイマ95は、コマンド120−1に対応するレスポンスの待ち時間(ウエイト時間)を、待ち時間T1を設定する。すなわち、タイマ95は、送信したコマンド120−1に対応するレスポンス(応答)が送信されてくるまでの待機時間T1を設定する。なお、ステップS111とステップS112の処理は、基本的に、図5のステップS11に対応する処理である。   In step S112, the timer 95 sets a waiting time T1 as a waiting time (wait time) for a response corresponding to the command 120-1. That is, the timer 95 sets a waiting time T1 until a response (response) corresponding to the transmitted command 120-1 is transmitted. Note that the processing in step S111 and step S112 is basically processing corresponding to step S11 in FIG.

ステップS113において、タイマ95は、設定されている待ち時間が経過したか否かを判定する。1回目のステップS113の処理では、ステップS111の処理でコマンド120−1を送信してから、ステップS112の処理で設定した待ち時間T1が経過したか否かを判定する。待ち時間T1が経過したと判定された場合、処理はステップS114に進み、制御処理部93は、エラー処理を実行し、処理を終了する。例えば、制御処理部93は、コマンドを送信してからそれに対応する応答が送信されてこなかったものと認識し、処理を終了する。   In step S113, the timer 95 determines whether or not the set waiting time has elapsed. In the first process of step S113, it is determined whether or not the waiting time T1 set in the process of step S112 has elapsed since the command 120-1 was transmitted in the process of step S111. If it is determined that the waiting time T1 has elapsed, the process proceeds to step S114, the control processing unit 93 executes error processing, and ends the process. For example, the control processing unit 93 recognizes that the response corresponding to the command has not been transmitted since the command was transmitted, and ends the processing.

ステップS113において、まだ待ち時間が経過していないと判定された場合、処理はステップS115に進み、送受信部82の受信部92は、非接触ICカード21からのレスポンスが送信されてきたか否かを判定する。例えば、図5のステップS52,ステップS54,またはステップS56の処理により、非接触ICカード21の送信バッファ47から各部を介してデータが送信されてくる場合に、受信部92は、非接触ICカード21からレスポンスが送信されてきたと判定する。   If it is determined in step S113 that the waiting time has not yet elapsed, the process proceeds to step S115, and the reception unit 92 of the transmission / reception unit 82 determines whether a response from the non-contact IC card 21 has been transmitted. judge. For example, when data is transmitted from the transmission buffer 47 of the non-contact IC card 21 through each unit by the processing of step S52, step S54, or step S56 in FIG. It is determined that a response has been transmitted from 21.

ステップS115において、非接触ICカード21からのレスポンスが送信されてきたと判定された場合、ステップS116において、受信部92は、非接触ICカード21からのレスポンスを受信する。受信部92は、受信したレスポンスを、A/D変換・デモジュレーション部83に供給する。A/D変換・デモジュレーション部83は、このデータをA/D変換した後、復調し、これを制御部84に供給する。   If it is determined in step S115 that a response from the non-contact IC card 21 has been transmitted, the reception unit 92 receives a response from the non-contact IC card 21 in step S116. The receiving unit 92 supplies the received response to the A / D conversion / demodulation unit 83. The A / D conversion / demodulation unit 83 performs A / D conversion on the data, demodulates the data, and supplies the demodulated data to the control unit 84.

ステップS117において、判定部94は、受信したレスポンスの送信先が自分自身であるか否かを判定する。すなわち、判定部94は、受信したレスポンスが、ステップS111の処理で非接触ICカード21に送信したコマンド120−1に対するレスポンスであるか否かを判定する。図5の例の場合、ステップS52とステップS54の処理で非接触ICカード21の送信バッファ47に格納され、送信されてきたレスポンスは、リーダライタ22に対するレスポンスではないので、NOと判定され、ステップS56の処理で非接触ICカード21の送信バッファ47に格納され、送信されてきたレスポンスは、リーダライタ22に対するレスポンスであるのでYESと判定される。なお、この処理では、送信先のアドレスが自分であるか否かに基づいて、そのレスポンスが正当であるか否かを判定しているが、送信元のアドレスが、ステップS111の処理でコマンドを送信したファイルシステムのファイルシステムIDであるか否かも、重ねて確認するようにしてもよい。   In step S117, the determination unit 94 determines whether or not the transmission destination of the received response is itself. That is, the determination unit 94 determines whether or not the received response is a response to the command 120-1 transmitted to the non-contact IC card 21 in the process of step S111. In the case of the example of FIG. 5, the response stored in the transmission buffer 47 of the non-contact IC card 21 in the processing of step S52 and step S54 and transmitted is not a response to the reader / writer 22, so it is determined as NO. Since the response stored and transmitted in the transmission buffer 47 of the non-contact IC card 21 in the process of S56 is a response to the reader / writer 22, it is determined YES. In this process, it is determined whether or not the response is valid based on whether or not the address of the transmission destination is itself. However, the address of the transmission source is determined by the command in step S111. Whether or not it is the file system ID of the transmitted file system may be checked again.

ステップS117において、受信したレスポンスの送信先が自分自身でないと判定された場合、すなわち、受信したレスポンスが、他のファイルシステムIDのファイルシステムに対するレスポンス(またはコマンド)である場合、処理はステップS118に進む。   If it is determined in step S117 that the destination of the received response is not itself, that is, if the received response is a response (or command) to a file system with another file system ID, the process proceeds to step S118. move on.

ステップS118において、制御処理部93は、そのレスポンス(またはコマンド)に含まれる延長時間を取得する。具体的には、受信したレスポンス(またはコマンド)が、自分自身へのレスポンスではない場合、そのレスポンス(またはコマンド)には、待ち時間を延長するための延長時間が格納されている。そこで、制御処理部93は、そのレスポンスに含まれる延長時間を取得する。例えば、制御処理部93は、レスポンスに含まれる延長時間T11を取得する。   In step S118, the control processing unit 93 acquires the extended time included in the response (or command). Specifically, when the received response (or command) is not a response to itself, the response (or command) stores an extension time for extending the waiting time. Therefore, the control processing unit 93 acquires the extended time included in the response. For example, the control processing unit 93 acquires the extended time T11 included in the response.

ステップS119において、タイマ95は、延長時間に基づいて、待ち時間を延長する。1回目のステップS119の例の場合、ステップS112の処理で設定された待ち時間T1に、さらに延長時間T11を加算した、時間(T1+T11)を、新たな待ち時間T2に設定する。これにより、延長時間T11に基づいて、待ち時間T1が延長される。なお、以下において、時間(T1+T11)=T2とする。また、この処理は、図5のステップS12に対応する処理である。   In step S119, the timer 95 extends the waiting time based on the extension time. In the case of the first step S119, the time (T1 + T11) obtained by further adding the extension time T11 to the waiting time T1 set in the process of step S112 is set as a new waiting time T2. Thereby, the waiting time T1 is extended based on the extension time T11. In the following, time (T1 + T11) = T2. Moreover, this process is a process corresponding to step S12 of FIG.

ステップS115において、非接触ICカード21からレスポンスが送信されてきていないと判定された場合、または、ステップS119の処理の後、処理はステップS113に戻り、それ以降の処理が繰り返される。例えば、2回目以降のステップS113の処理では、そのとき設定されている待ち時間(例えば、1回目のステップS119の処理で設定された待ち時間T2)が経過したか(コマンドを送信してから、時間T2が経過したか)否かが判定され、待ち時間内に、非接触ICカード21からレスポンスが送信されてきた場合、2回目のステップS117で、そのレスポンスの送信先が自分自身であるか否かが判定され、自分自身でないと判定された場合、2回目のステップS119において、延長時間に基づいて待ち時間がさらに延長され、時間T3とされる(図5のステップS13に対応する処理)。そして、その後のステップS113の処理では、コマンドを送信してから(ステップS111の後から)、待ち時間T3が経過したか否かが判定される。   If it is determined in step S115 that a response has not been transmitted from the non-contact IC card 21, or after the process of step S119, the process returns to step S113, and the subsequent processes are repeated. For example, in the process of step S113 after the second time, whether the waiting time set at that time (for example, the waiting time T2 set in the process of step S119 for the first time) has elapsed (after transmitting the command, If the response is transmitted from the non-contact IC card 21 within the waiting time, whether or not the response destination is itself in the second step S117. If it is determined whether or not it is not itself, in the second step S119, the waiting time is further extended based on the extension time to be time T3 (processing corresponding to step S13 in FIG. 5). . In the subsequent process of step S113, it is determined whether or not the waiting time T3 has elapsed after the command is transmitted (after step S111).

このように、リーダライタ22は、自分自身へのレスポンスが受信されるまで、待ち時間を延長することができる。   Thus, the reader / writer 22 can extend the waiting time until a response to itself is received.

そして、ステップS117において、受信したレスポンスの送信先が自分自身であると判定された場合、すなわち、ステップS111の処理で送信した非接触ICカード21へのコマンドに対するレスポンスを受信したと判定された場合、処理はステップS120に進み、制御処理部93は、そのレスポンスに対応する処理を実行する。その後、処理は終了される。なお、この処理は、図5のステップS14に対応する処理である。   If it is determined in step S117 that the destination of the received response is itself, that is, if it is determined that a response to the command to the contactless IC card 21 transmitted in the process of step S111 has been received. Then, the process proceeds to step S120, and the control processing unit 93 executes a process corresponding to the response. Thereafter, the process is terminated. This process corresponds to step S14 in FIG.

図6の処理により、レスポンスが自分自身へのレスポンスでない場合に、延長時間に基づいて、レスポンスが送信されてくるまでの待ち時間を延長するようにしたので、タイムアウトを防ぐことができる。また、リーダライタ22は、コマンドを1回送信するだけで、複数のファイルシステムにより実行された結果のレスポンスを受信することができる。   According to the processing of FIG. 6, when the response is not a response to itself, the waiting time until the response is transmitted is extended based on the extended time, so that a timeout can be prevented. Further, the reader / writer 22 can receive a response of a result executed by a plurality of file systems by transmitting a command only once.

次に、図5の処理をより詳細に説明するために、図2の受信バッファ44における処理の詳細を、図7のフローチャートを参照して説明する。   Next, in order to describe the process of FIG. 5 in more detail, the details of the process in the reception buffer 44 of FIG. 2 will be described with reference to the flowchart of FIG.

ステップS151において、受信バッファ44は、データが供給されてきたか否かを判定し、供給されてくるまで待機する。具体的には、受信バッファ44は、A/D変換・デモジュレーション部43または送信バッファ47からデータが供給されてきたか否かを判定し、データが供給されてくるまで待機する。   In step S151, the reception buffer 44 determines whether data has been supplied and waits until the data is supplied. Specifically, the reception buffer 44 determines whether or not data is supplied from the A / D conversion / demodulation unit 43 or the transmission buffer 47, and waits until data is supplied.

ステップS151において、データが供給されてきたと判定された場合、ステップS152において、受信バッファ44は、供給されてきたデータを格納(バッファリング)する。この処理は、図5の例においては、ステップS31,ステップS33,ステップS35,およびステップS37の処理に対応する処理である。   If it is determined in step S151 that data has been supplied, the reception buffer 44 stores (buffers) the supplied data in step S152. This process is a process corresponding to the process of step S31, step S33, step S35, and step S37 in the example of FIG.

ステップS153において、受信バッファ44は、格納したデータは、自分自身が管理するファイルシステムのファイルシステムIDを含むか否かを判定する。具体的には、受信バッファ44は、格納したデータの送信先が、自分自身が管理するファイルシステムのファイルシステムIDであるか否かを判定する。図2の例の場合、受信バッファ44は、格納したデータの送信先が、ファイルシステムID#1またはファイルシステムID#2であるか否かを判定する。   In step S153, the reception buffer 44 determines whether or not the stored data includes a file system ID of a file system managed by itself. Specifically, the reception buffer 44 determines whether or not the transmission destination of the stored data is a file system ID of a file system managed by itself. In the case of the example of FIG. 2, the reception buffer 44 determines whether the transmission destination of the stored data is the file system ID # 1 or the file system ID # 2.

ステップS153において、格納したデータが、自分自身が管理するファイルシステムのファイルシステムIDを含まないと判定された場合、このデータは、非接触ICカード21に対して送信されたものではないので、ステップS154において、受信バッファ44は、格納したデータを破棄し、処理はステップS151に戻る。   If it is determined in step S153 that the stored data does not include the file system ID of the file system managed by itself, this data is not transmitted to the non-contact IC card 21. In S154, the reception buffer 44 discards the stored data, and the process returns to Step S151.

一方、ステップS153において、格納したデータが、自分自身が管理するファイルシステムのファイルシステムIDを含むと判定された場合、このデータは、非接触ICカード21に対して送信されてきたものであるので、処理をステップS155に進める。例えば、格納したデータの送信先に、ファイルシステムID#1が記述されている場合や、ファイルシステムID#2が記述されている場合に、処理をステップS155に進める。   On the other hand, if it is determined in step S153 that the stored data includes the file system ID of the file system managed by itself, this data has been transmitted to the non-contact IC card 21. Then, the process proceeds to step S155. For example, when the file system ID # 1 is described in the transmission destination of the stored data, or when the file system ID # 2 is described, the process proceeds to step S155.

ステップS155において、受信バッファ44は、ICカードOSからデータが要求されたか否かを判定する。図2の例の場合、ICカードOSは2つ(ICカードOS45とICカードOS46の2つ)あるので、受信バッファ44は、これらの2つのICカードOSからデータが要求される。   In step S155, the reception buffer 44 determines whether data is requested from the IC card OS. In the case of the example in FIG. 2, since there are two IC card OSs (IC card OS 45 and IC card OS 46), the reception buffer 44 requests data from these two IC card OSs.

ステップS155において、ICカードOSからデータが要求されたと判定された場合、処理はステップS156において、受信バッファ44は、ICカードOSに、要求されたデータを供給する。図2の例の場合、受信バッファ44は、ICカードOS45とICカードOS46とに、ステップS152の処理で格納したデータを供給する。なお、この処理は、図5の例の場合、ステップS32,ステップS35,ステップS36,およびステップS38の処理に対応する。   If it is determined in step S155 that data has been requested from the IC card OS, the process supplies the requested data to the IC card OS in step S156. In the case of the example in FIG. 2, the reception buffer 44 supplies the data stored in the process of step S152 to the IC card OS 45 and the IC card OS 46. Note that this processing corresponds to the processing of step S32, step S35, step S36, and step S38 in the example of FIG.

ステップS155において、ICカードOSからデータが要求されていないと判定された場合、またはステップS156の処理の後、処理はステップS157に進み、受信バッファ44は、処理を終了するか否かを判定する。   If it is determined in step S155 that no data is requested from the IC card OS, or after the process of step S156, the process proceeds to step S157, and the reception buffer 44 determines whether to end the process. .

ステップS151においてデータが供給されてこないと判定された場合、ステップS154の処理の後、または、ステップS157において処理を終了しないと判定された場合、処理はステップS151に戻り、それ以降の処理が繰り返される。ステップS157において、処理を終了すると判定された場合、処理は終了される。   If it is determined in step S151 that no data is supplied, or after step S154, or if it is determined not to end the process in step S157, the process returns to step S151, and the subsequent processes are repeated. It is. If it is determined in step S157 that the process is to be terminated, the process is terminated.

図7の処理によれば、受信バッファ44は、供給されてきたデータを格納するとともに、ICカードOSからデータの読み出しが要求された場合に、要求されたデータを供給することができる。   According to the processing of FIG. 7, the reception buffer 44 can store the supplied data and can supply the requested data when the IC card OS requests to read the data.

次に、図5の処理をより詳細に説明するために、図2の送信バッファ47における処理の詳細を、図8のフローチャートを参照して説明する。   Next, in order to describe the process of FIG. 5 in more detail, the details of the process in the transmission buffer 47 of FIG. 2 will be described with reference to the flowchart of FIG.

ステップS201において、送信バッファ47は、データが供給されてきたか否かを判定し、供給されてくるまで待機する。具体的には、送信バッファ47は、ICカードOS45またはICカードOS46からデータが供給されてきたか否かを判定し、データが供給されてくるまで待機する。   In step S201, the transmission buffer 47 determines whether data has been supplied and waits until the data is supplied. Specifically, the transmission buffer 47 determines whether or not data is supplied from the IC card OS 45 or the IC card OS 46, and waits until data is supplied.

ステップS201において、データが供給されてきたと判定された場合、ステップS202において、送信バッファ47は、供給されてきたデータを格納(バッファリング)する。この処理は、図5の例においては、ステップS51,ステップS53,およびステップS55の処理に対応する処理である。   If it is determined in step S201 that data has been supplied, the transmission buffer 47 stores (buffers) the supplied data in step S202. In the example of FIG. 5, this process is a process corresponding to the process of step S51, step S53, and step S55.

ステップS203において、送信バッファ47は、供給されてきたデータを受信バッファ44に供給する。すなわち、ステップS201の処理で供給されてきたと判定されたデータが、受信バッファ44にも供給される。   In step S <b> 203, the transmission buffer 47 supplies the supplied data to the reception buffer 44. That is, the data determined to have been supplied in the process of step S201 is also supplied to the reception buffer 44.

すなわち、ステップS202とステップS203の処理で、送信バッファ47にデータが供給されてきた場合、データが送信バッファ47に格納されるとともに、受信バッファ44にそのデータが供給される。   That is, when data is supplied to the transmission buffer 47 in the processing of step S202 and step S203, the data is stored in the transmission buffer 47 and the data is supplied to the reception buffer 44.

ステップS204において、送信バッファ47は、ステップS202の処理で格納したデータを、リーダライタ22に送信する。具体的には、送信バッファ47にデータが格納されると、D/A変換・モジュレーション部48から、そのデータが要求されるので、送信バッファ47は、D/A変換・モジュレーション部48に、格納したデータを供給する。D/A変換・モジュレーション部48は、そのデータを変調した後、D/A変換し、これを、送信部61に供給する。送信部は、送信するデータに対する搬送波を変調した電磁波を、アンテナ41に送信することで、リーダライタ22に対してデータを送信する。これにより、送信バッファ47に格納されたデータが、リーダライタ22に送信される。   In step S204, the transmission buffer 47 transmits the data stored in step S202 to the reader / writer 22. Specifically, when data is stored in the transmission buffer 47, the data is requested from the D / A conversion / modulation unit 48, so the transmission buffer 47 stores the data in the D / A conversion / modulation unit 48. Supply the data. The D / A conversion / modulation unit 48 modulates the data, performs D / A conversion, and supplies this to the transmission unit 61. The transmission unit transmits data to the reader / writer 22 by transmitting an electromagnetic wave obtained by modulating a carrier wave for data to be transmitted to the antenna 41. As a result, the data stored in the transmission buffer 47 is transmitted to the reader / writer 22.

ステップS205において、送信バッファ47は、処理を終了するか否かを判定する。ステップS205において処理を終了しないと判定された場合、処理はステップS201に戻り、それ以降の処理が繰り返される。また、ステップS205において、処理を終了すると判定された場合、処理は終了される。   In step S205, the transmission buffer 47 determines whether to end the process. If it is determined in step S205 that the process is not terminated, the process returns to step S201, and the subsequent processes are repeated. If it is determined in step S205 that the process is to be terminated, the process is terminated.

図8の処理によれば、送信バッファ47は、供給されてきたデータを、格納するとともに、受信バッファ44に供給することができる。   According to the processing of FIG. 8, the transmission buffer 47 can store the supplied data and supply it to the reception buffer 44.

次に、図5の処理をより詳細に説明するために、図2のICカードOS45における処理の詳細を、図9のフローチャートを参照して説明する。すなわち、この処理は、ファイルシステムID#1のファイルシステム51を有するICカードOS45が実行する処理である。なお、この処理は、後述する図10の処理(ICカードOS46が実行する処理)と基本的に同様であるが、図5の処理に対応するICカードOS45が実行する処理として、説明していく。   Next, in order to describe the process of FIG. 5 in more detail, the details of the process in the IC card OS 45 of FIG. 2 will be described with reference to the flowchart of FIG. That is, this process is a process executed by the IC card OS 45 having the file system 51 with the file system ID # 1. This process is basically the same as the process of FIG. 10 described later (process executed by the IC card OS 46), but will be described as a process executed by the IC card OS 45 corresponding to the process of FIG. .

ステップS251において、ICカードOS45は、受信バッファ44にデータが格納されたか否かを判定し、データが格納されるまで待機する。例えば、図7のステップS153の処理で自分自身が管理するファイルシステムIDを含むと判定された場合(すなわち、ステップS153でYESと判定され、格納されたデータが破棄されなかった場合)に、ICカードOS45は、受信バッファ44にデータが格納されたと判定する。すなわち、ICカードOS45は、受信バッファ44に格納されたデータを取得できると確認したとき(破棄されないと確認したとき)、受信バッファ44にデータが格納されたと判定する。   In step S251, the IC card OS 45 determines whether data is stored in the reception buffer 44, and waits until data is stored. For example, if it is determined in step S153 in FIG. 7 that the file system ID managed by itself is included (that is, YES is determined in step S153 and the stored data is not discarded), the IC The card OS 45 determines that data is stored in the reception buffer 44. That is, when the IC card OS 45 confirms that the data stored in the reception buffer 44 can be acquired (when it is confirmed that the data is not discarded), the IC card OS 45 determines that the data is stored in the reception buffer 44.

ステップS251において、受信バッファ44にデータが格納されたと判定された場合、処理はステップS252に進み、ICカードOS45は、受信バッファ44に格納されたデータを取得する。すなわち、ICカードOS45は、受信バッファ44に格納されたデータの読み出しを要求し、そのデータを読み出す。   If it is determined in step S251 that data has been stored in the reception buffer 44, the process proceeds to step S252, and the IC card OS 45 acquires the data stored in the reception buffer 44. That is, the IC card OS 45 requests reading of data stored in the reception buffer 44 and reads the data.

ステップS253において、ICカードOS45は、取得したデータの送信先のファイルシステムIDが、ファイルシステムID#1であるか否かを判定する。すなわち、ICカードOS45は、自分自身が有するファイルシステム51のファイルシステムID#1が、そのデータの送信先として指定されているか否かを判定する。このことは、取得したデータが、自分宛に送信されたものであるか否かを判定することと等価である。   In step S253, the IC card OS 45 determines whether or not the file system ID of the transmission destination of the acquired data is the file system ID # 1. That is, the IC card OS 45 determines whether or not the file system ID # 1 of the file system 51 that the IC card OS 45 has is designated as the data transmission destination. This is equivalent to determining whether or not the acquired data has been transmitted to itself.

なお、このとき判定されるデータは、図5の例の場合、ステップS71,ステップS73,ステップS74,およびステップS76の処理で取得されるコマンドやレスポンスである。より具体的には、図5のステップS71の処理で取得されるデータは、送信先がファイルシステムID#1であるコマンド120−1であるので、ステップS253の処理では、YESと判定される。また、図5のステップS73の処理で取得されるデータは、送信先がファイルシステムID#2であるコマンド120−2であるので、ステップS253の処理ではNOと判定される。さらに、図5のステップS74の処理で取得されるデータは、送信先がファイルシステムID#1であるレスポンスであるので、ステップS253の処理ではYESと判定される。また、図5のステップS76の処理で取得されるデータは、送信先がリーダライタ22を特定するIDであるレスポンスであるので、ステップS253の処理ではNOと判定される。   In the case of the example of FIG. 5, the data determined at this time is a command or a response acquired in the processing of step S71, step S73, step S74, and step S76. More specifically, since the data acquired in the process of step S71 in FIG. 5 is the command 120-1 whose transmission destination is the file system ID # 1, it is determined YES in the process of step S253. Further, since the data acquired in the process of step S73 in FIG. 5 is the command 120-2 whose transmission destination is the file system ID # 2, it is determined NO in the process of step S253. Furthermore, since the data acquired in the process of step S74 in FIG. 5 is a response whose transmission destination is the file system ID # 1, it is determined YES in the process of step S253. Further, since the data acquired in the process of step S76 in FIG. 5 is a response whose transmission destination is an ID for specifying the reader / writer 22, it is determined NO in the process of step S253.

ステップS253において、取得したデータの送信先のファイルシステムIDがファイルシステムID#1と判定された場合、すなわち、取得したデータの送信先が自分自身であると判定された場合、処理はステップS254に進む。図5の例の場合、ステップS71またはステップS74の処理に対応する。   If it is determined in step S253 that the file system ID of the acquired data transmission destination is file system ID # 1, that is, if it is determined that the acquired data transmission destination is itself, the process proceeds to step S254. move on. In the case of the example in FIG. 5, this corresponds to the processing in step S71 or step S74.

ステップS254において、ICカードOS45は、ステップS252の処理で取得したデータに対応する処理を実行する。この処理が図5のステップS71に対応する場合、取得されたデータは、コマンド120−1であるので、ICカードOS45は、コマンド120−1に含まれるコマンドデータ121(図4)と、データ123とに基づく処理を実行する。また、この処理が、図5のステップS74に対応する場合、取得されたデータは、レスポンスであるので、ICカードOS45は、レスポンスに含まれるデータに基づく処理を実行する。   In step S254, the IC card OS 45 executes processing corresponding to the data acquired in step S252. When this processing corresponds to step S71 in FIG. 5, the acquired data is the command 120-1, so the IC card OS 45 has the command data 121 (FIG. 4) included in the command 120-1 and the data 123. The process based on and is executed. Further, when this processing corresponds to step S74 in FIG. 5, the acquired data is a response, so the IC card OS 45 executes processing based on the data included in the response.

ステップS255において、ICカードOS45は、ステップS254の処理による処理結果を、他のファイルシステムのICカードOSに送信するか否かを判定する。具体的には、ICカードOS45は、処理を実行した結果を、非接触ICカード21の内部に設けられている他のファイルシステム(図2の例の場合、ファイルシステム51とは異なるファイルシステム52)のICカードOSに送信するか、リーダライタ22に送信するか否かを判定する。すなわち、ICカードOS45は、処理を実行した結果が、他のファイルシステムのICカードOSに送信するものであるか、リーダライタ22に送信するものであるか否かを判定する。例えば、この処理が、図5のステップS71の処理に対応する処理である場合、処理結果を、他のファイルシステムのICカードOS46に送信すると判定される。   In step S255, the IC card OS 45 determines whether or not to transmit the processing result of the process in step S254 to the IC card OS of another file system. Specifically, the IC card OS 45 outputs the processing result to another file system provided in the contactless IC card 21 (a file system 52 different from the file system 51 in the example of FIG. 2). ) Or the reader / writer 22 is determined. In other words, the IC card OS 45 determines whether the result of executing the process is to be transmitted to the IC card OS of another file system or to be transmitted to the reader / writer 22. For example, when this process is a process corresponding to the process of step S71 in FIG. 5, it is determined that the process result is transmitted to the IC card OS 46 of another file system.

ステップS255において、処理結果を、他のファイルシステムのICカードOSに送信すると判定された場合、ステップS256において、ICカードOS45は、処理結果に、送信先のファイルシステムIDを含める。例えば、この処理が、図5のステップS71の処理に対応する処理である場合、ICカードOS45は、処理結果であるコマンド120(図4)の送信先であるファイルシステムID122を、「ファイルシステムID#2」とすることで、処理結果に送信先のファイルシステムIDを含める。   When it is determined in step S255 that the processing result is transmitted to the IC card OS of another file system, in step S256, the IC card OS 45 includes the file system ID of the transmission destination in the processing result. For example, when this process is a process corresponding to the process of step S71 in FIG. 5, the IC card OS 45 sets the file system ID 122, which is the transmission destination of the command 120 (FIG. 4) as the process result, to the “file system ID”. By setting “# 2”, the file system ID of the transmission destination is included in the processing result.

ステップS257において、ICカードOS45は、処理結果に延長時間を含める。延長時間とは、リーダライタ22により図6のステップS112の処理で設定された待ち時間を延長するための時間であり、図6のステップS119の処理で、待ち時間を延長するのに用いられる。すなわち、ICカードOS45は、処理結果を、他のファイルシステムのICカードOSに送信する場合、リーダライタ22にレスポンスが送信されてくるまでの待ち時間を延長して貰うために、処理結果に延長時間を含める。例えば、処理結果がコマンド120である場合、図4のデータ123の部分に延長時間(例えば、時間T11)を含める。   In step S257, the IC card OS 45 includes the extended time in the processing result. The extension time is a time for extending the waiting time set by the reader / writer 22 in step S112 of FIG. 6, and is used for extending the waiting time in step S119 of FIG. That is, when the processing result is transmitted to the IC card OS of another file system, the IC card OS 45 extends the processing result in order to extend the waiting time until the response is transmitted to the reader / writer 22. Include time. For example, when the processing result is the command 120, the extended time (eg, time T11) is included in the data 123 portion of FIG.

ステップS255において、処理結果を他のファイルシステムのICカードOSに送信しない(この例の場合、処理結果をリーダライタ22に送信する)と判定された場合、またはステップS257の処理の後、処理はステップS258に進む。   If it is determined in step S255 that the processing result is not transmitted to the IC card OS of another file system (in this example, the processing result is transmitted to the reader / writer 22), or after the processing in step S257, the processing is performed. The process proceeds to step S258.

なお、処理結果がリーダライタ22に送信されるものである場合には、その処理結果の送信先は、リーダライタ22を特定するIDとされている。   When the processing result is transmitted to the reader / writer 22, the transmission destination of the processing result is an ID that identifies the reader / writer 22.

ステップS258において、ICカードOS45は、処理結果を送信バッファ47に供給する。これにより、処理結果がリーダライタ22に送信するものである場合には、処理結果がリーダライタ22と受信バッファ44に送信されるとともに、処理結果が他のファイルシステムのICカードOSに送信するものである場合には、処理結果に延長時間が含められて、リーダライタ22と受信バッファ44に送信される。   In step S <b> 258, the IC card OS 45 supplies the processing result to the transmission buffer 47. Thereby, when the processing result is to be transmitted to the reader / writer 22, the processing result is transmitted to the reader / writer 22 and the reception buffer 44, and the processing result is transmitted to the IC card OS of another file system. In this case, the extension time is included in the processing result and is transmitted to the reader / writer 22 and the reception buffer 44.

ステップS253において、取得したデータの送信先のファイルシステムIDがファイルシステムID#1でない(この例の場合、取得したデータの送信先のファイルシステムIDがファイルシステムID#2である)と判定された場合、または、ステップS258の処理の後、処理はステップS259に進む。   In step S253, it is determined that the file system ID of the acquired data transmission destination is not the file system ID # 1 (in this example, the file system ID of the acquired data transmission destination is the file system ID # 2). If, or after the process of step S258, the process proceeds to step S259.

ステップS259において、ICカードOS45は、処理を終了するか否かを判定し、処理を終了しないと判定された場合、処理はステップS251に戻り、それ以降の処理が繰り返される。ステップS259において、処理を終了すると判定された場合、処理は終了される。   In step S259, the IC card OS 45 determines whether to end the process. If it is determined not to end the process, the process returns to step S251, and the subsequent processes are repeated. If it is determined in step S259 that the process is to be terminated, the process is terminated.

図9の処理によれば、ICカードOS45は、取得したデータが自分自身に対するものである場合(送信先のファイルシステムIDが、自分自身が実行するファイルシステム51のファイルシステムID#1と一致する場合)、取得したデータに対応する処理を実行し、自分自身に対するものでない場合、処理を実行しない。   According to the processing of FIG. 9, the IC card OS 45 determines that the acquired data is for itself (the file system ID of the transmission destination matches the file system ID # 1 of the file system 51 executed by itself). ), The process corresponding to the acquired data is executed, and if it is not for itself, the process is not executed.

また、ICカードOS45は、処理を実行した結果、処理結果を、他のファイルシステムのICカードOSに送信する場合には、処理結果に送信先のファイルシステムIDを含めるとともに、リーダライタ22に通知するための延長時間を含めるようにしたので、リーダライタ22側で、待ち時間を延長することができる。   Further, when the processing result is transmitted to the IC card OS of another file system as a result of executing the processing, the IC card OS 45 includes the destination file system ID in the processing result and notifies the reader / writer 22 of the processing result. Since the extended time for doing so is included, the waiting time can be extended on the reader / writer 22 side.

次に、図5の処理をより詳細に説明するために、図2のICカードOS46における処理の詳細を、図10のフローチャートを参照して説明する。すなわち、この処理は、ファイルシステムID#2のファイルシステム52を有するICカードOS46が実行する処理である。なお、この処理は、上述した図9の処理(ICカードOS45が実行する処理)と基本的に同様であるが、図5の処理に対応するICカードOS46が実行する処理として、説明していく。   Next, in order to describe the process of FIG. 5 in more detail, the details of the process in the IC card OS 46 of FIG. 2 will be described with reference to the flowchart of FIG. That is, this process is a process executed by the IC card OS 46 having the file system 52 with the file system ID # 2. This process is basically the same as the process of FIG. 9 described above (process executed by the IC card OS 45), but will be described as a process executed by the IC card OS 46 corresponding to the process of FIG. .

ステップS301において、ICカードOS46は、受信バッファ44にデータが格納されたか否かを判定し、データが格納されるまで待機する。例えば、図7のステップS153の処理で自分自身が管理するファイルシステムIDを含むと判定された場合(すなわち、ステップS153でYESと判定され、格納されたデータが破棄されなかった場合)に、ICカードOS46は、受信バッファ44にデータが格納されたと判定する。すなわち、ICカードOS46は、受信バッファ44に格納されたデータを取得できると確認したとき(破棄されないと確認したとき)、受信バッファ44にデータが格納されたと判定する。   In step S301, the IC card OS 46 determines whether or not data is stored in the reception buffer 44, and waits until data is stored. For example, if it is determined in step S153 in FIG. 7 that the file system ID managed by itself is included (that is, YES is determined in step S153 and the stored data is not discarded), the IC The card OS 46 determines that data is stored in the reception buffer 44. That is, when the IC card OS 46 confirms that the data stored in the reception buffer 44 can be acquired (when it is confirmed that the data is not discarded), the IC card OS 46 determines that the data is stored in the reception buffer 44.

ステップS301において、受信バッファ44にデータが格納されたと判定された場合、処理はステップS302に進み、ICカードOS46は、受信バッファ44に格納されたデータを取得する。すなわち、ICカードOS46は、受信バッファ44に格納されたデータの読み出しを要求し、そのデータを読み出す。   If it is determined in step S301 that data has been stored in the reception buffer 44, the process proceeds to step S302, and the IC card OS 46 acquires the data stored in the reception buffer 44. That is, the IC card OS 46 requests reading of data stored in the reception buffer 44 and reads the data.

このように、ICカードOS46が受信バッファ44からデータを取得するタイミングは、ICカードOS45が受信バッファ44からデータを取得するタイミング(図9のステップS252)と同様であり、受信バッファ44にデータが格納された場合には、ICカードOS45とICカードOS46とにより、データが取得される。   As described above, the timing at which the IC card OS 46 acquires data from the reception buffer 44 is the same as the timing at which the IC card OS 45 acquires data from the reception buffer 44 (step S252 in FIG. 9), and data is stored in the reception buffer 44. When stored, data is acquired by the IC card OS 45 and the IC card OS 46.

ステップS303において、ICカードOS46は、取得したデータの送信先のファイルシステムIDが、ファイルシステムID#2であるか否かを判定する。すなわち、ICカードOS46は、自分自身が有するファイルシステム52のファイルシステムID#2が、そのデータの送信先として指定されているか否かを判定する。このことは、取得したデータが、自分宛に送信されたものであるか否かを判定することと等価である。   In step S303, the IC card OS 46 determines whether the file system ID of the acquired data transmission destination is the file system ID # 2. That is, the IC card OS 46 determines whether or not the file system ID # 2 of the file system 52 that the IC card OS 46 has is designated as the data transmission destination. This is equivalent to determining whether or not the acquired data has been transmitted to itself.

なお、このとき判定されるデータは、図5の例の場合、ステップS91,ステップS92,ステップS94,およびステップS95の処理で取得されるコマンドやレスポンスである。より具体的には、図5のステップS91の処理で取得されるデータは、送信先がファイルシステムID#1であるコマンド120−1であるので、ステップS303の処理では、NOと判定される。また、図5のステップS92の処理で取得されるデータは、送信先がファイルシステムID#2であるコマンド120−2であるので、ステップS303の処理ではYESと判定される。さらに、図5のステップS94の処理で取得されるデータは、送信先がファイルシステムID#1であるレスポンスであるので、ステップS303の処理ではNOと判定される。また、図5のステップS95の処理で取得されるデータは、送信先がリーダライタ22を特定するIDであるレスポンスであるので、ステップS303の処理ではNOと判定される。   In the case of the example of FIG. 5, the data determined at this time is a command or a response acquired in the processes of step S91, step S92, step S94, and step S95. More specifically, since the data acquired in the process of step S91 in FIG. 5 is the command 120-1 whose transmission destination is the file system ID # 1, it is determined NO in the process of step S303. Further, since the data acquired in the process of step S92 of FIG. 5 is the command 120-2 whose transmission destination is the file system ID # 2, it is determined YES in the process of step S303. Furthermore, since the data acquired in the process of step S94 in FIG. 5 is a response whose transmission destination is the file system ID # 1, it is determined NO in the process of step S303. Further, since the data acquired in the process of step S95 in FIG. 5 is a response whose transmission destination is an ID for identifying the reader / writer 22, it is determined NO in the process of step S303.

ステップS303において、取得したデータの送信先のファイルシステムIDがファイルシステムID#2と判定された場合、すなわち、取得したデータの送信先が自分自身であると判定された場合、処理はステップS304に進む。図5の例の場合、ステップS92の処理に対応する。   If it is determined in step S303 that the file system ID of the acquired data transmission destination is file system ID # 2, that is, if it is determined that the acquired data transmission destination is itself, the process proceeds to step S304. move on. In the case of the example in FIG. 5, this corresponds to the processing in step S92.

ステップS304において、ICカードOS46は、ステップS302の処理で取得したデータに対応する処理を実行する。この処理が図5のステップS92に対応する場合、取得されたデータは、コマンド120−2であるので、ICカードOS46は、コマンド120−2に含まれるコマンドデータ121(図4)と、データ123とに基づく処理を実行する。   In step S304, the IC card OS 46 executes processing corresponding to the data acquired in step S302. When this processing corresponds to step S92 in FIG. 5, the acquired data is the command 120-2, and therefore the IC card OS 46 determines that the command data 121 (FIG. 4) included in the command 120-2 and the data 123 are included. The process based on and is executed.

このように、受信バッファ44に格納されたデータは、ICカードOS45とICカードOS46とに取得され(図9のステップS252と図10のステップS302)、送信先の対応するICカードOSのみが、そのデータに対応する処理を実行する。   As described above, the data stored in the reception buffer 44 is acquired by the IC card OS 45 and the IC card OS 46 (step S252 in FIG. 9 and step S302 in FIG. 10), and only the corresponding IC card OS of the transmission destination is A process corresponding to the data is executed.

ステップS305において、ICカードOS46は、ステップS304の処理による処理結果を、他のファイルシステムのICカードOSに送信するか否かを判定する。具体的には、ICカードOS46は、処理を実行した結果を、非接触ICカード21の内部に設けられている他のファイルシステム(図2の例の場合、ファイルシステム52とは異なるファイルシステム51)のICカードOSに送信するか、リーダライタ22に送信するか否かを判定する。すなわち、ICカードOS46は、処理を実行した結果が、他のファイルシステムのICカードOSに送信するものであるか、リーダライタ22に送信するものであるか否かを判定する。このとき、ICカードOS46が、他のファイルシステムを有するICカードOS(例えば、ICカードOS45)からのコマンドに対応する処理を実行した場合(例えば、図5のステップS92の処理を実行した場合)、そのレスポンスは、ICカードOS45に送信する必要があるので、処理結果を、他のファイルシステムのICカードOSに送信すると判定する。   In step S305, the IC card OS 46 determines whether or not to transmit the processing result of the process in step S304 to the IC card OS of another file system. Specifically, the IC card OS 46 outputs the result of the processing to another file system provided in the contactless IC card 21 (a file system 51 different from the file system 52 in the example of FIG. 2). ) Or the reader / writer 22 is determined. That is, the IC card OS 46 determines whether the result of executing the process is to be transmitted to the IC card OS of another file system or to be transmitted to the reader / writer 22. At this time, when the IC card OS 46 executes a process corresponding to a command from an IC card OS (for example, the IC card OS 45) having another file system (for example, when the process of step S92 in FIG. 5 is executed). Since the response needs to be transmitted to the IC card OS 45, it is determined that the processing result is transmitted to the IC card OS of another file system.

ステップS305において、処理結果を、他のファイルシステムのICカードOSに送信すると判定された場合、ステップS306において、ICカードOS46は、処理結果に、送信先のファイルシステムIDを含める。例えば、この処理が、図5のステップS92の処理に対応する処理である場合、ICカードOS46は、処理結果であるレスポンスの送信先であるファイルシステムIDを、「ファイルシステムID#1」とすることで、処理結果に送信先のファイルシステムIDを含める。なお、このとき、送信元のファイルシステムIDは、ファイルシステムID#2とされて、レスポンスに含められている(例えば、ICカードOS46が処理を実行したときにその結果に、送信元のファイルシステムID#2が含められている)。   When it is determined in step S305 that the processing result is transmitted to the IC card OS of another file system, in step S306, the IC card OS 46 includes the file system ID of the transmission destination in the processing result. For example, when this process is a process corresponding to the process of step S92 of FIG. 5, the IC card OS 46 sets the file system ID that is the transmission destination of the response that is the process result to “file system ID # 1”. Thus, the file system ID of the transmission destination is included in the processing result. At this time, the file system ID of the transmission source is the file system ID # 2, and is included in the response (for example, when the IC card OS 46 executes the process, the file system ID of the transmission source is included in the result. ID # 2 is included).

ステップS307において、ICカードOS46は、処理結果に延長時間を含める。延長時間とは、リーダライタ22により図6のステップS112の処理で設定された待ち時間を延長するための時間であり、図6のステップS119の処理で、待ち時間を延長するのに用いられる。すなわち、ICカードOS46は、処理結果を、他のファイルシステムのICカードOSに送信する場合、リーダライタ22にレスポンスが送信されてくるまでの待ち時間を延長して貰うために、処理結果に延長時間を含める。   In step S307, the IC card OS 46 includes the extended time in the processing result. The extension time is a time for extending the waiting time set by the reader / writer 22 in step S112 of FIG. 6, and is used for extending the waiting time in step S119 of FIG. That is, when the processing result is transmitted to the IC card OS of another file system, the IC card OS 46 extends the processing result in order to extend the waiting time until the response is transmitted to the reader / writer 22. Include time.

ステップS305において、処理結果を他のファイルシステムのICカードOSに送信しない(この例の場合、処理結果をリーダライタ22に送信する)と判定された場合、またはステップS307の処理の後、処理はステップS308に進む。   In step S305, when it is determined that the processing result is not transmitted to the IC card OS of another file system (in this example, the processing result is transmitted to the reader / writer 22), or after the processing of step S307, the processing is performed. Proceed to step S308.

なお、処理結果がリーダライタ22に送信されるものである場合には、その処理結果の送信先は、リーダライタ22を特定するIDとされている。   When the processing result is transmitted to the reader / writer 22, the transmission destination of the processing result is an ID that identifies the reader / writer 22.

ステップS308において、ICカードOS46は、処理結果を送信バッファ47に供給する。これにより、処理結果がリーダライタ22に送信するものである場合には、処理結果がリーダライタ22と受信バッファ44に送信されるとともに、処理結果が他のファイルシステムのICカードOSに送信するものである場合には、処理結果に延長時間が含められて、リーダライタ22と受信バッファ44に送信される。   In step S <b> 308, the IC card OS 46 supplies the processing result to the transmission buffer 47. Thereby, when the processing result is to be transmitted to the reader / writer 22, the processing result is transmitted to the reader / writer 22 and the reception buffer 44, and the processing result is transmitted to the IC card OS of another file system. In this case, the extension time is included in the processing result and is transmitted to the reader / writer 22 and the reception buffer 44.

ステップS303において、取得したデータの送信先のファイルシステムIDがファイルシステムID#2でない(この例の場合、取得したデータの送信先のファイルシステムIDがファイルシステムID#1である)と判定された場合、または、ステップS308の処理の後、処理はステップS309に進む。   In step S303, it is determined that the file system ID of the acquired data transmission destination is not the file system ID # 2 (in this example, the file system ID of the acquired data transmission destination is the file system ID # 1). If, or after the process of step S308, the process proceeds to step S309.

ステップS309において、ICカードOS46は、処理を終了するか否かを判定し、処理を終了しないと判定された場合、処理はステップS301に戻り、それ以降の処理が繰り返される。ステップS309において、処理を終了すると判定された場合、処理は終了される。   In step S309, the IC card OS 46 determines whether or not to end the process. If it is determined not to end the process, the process returns to step S301, and the subsequent processes are repeated. If it is determined in step S309 that the process is to be terminated, the process is terminated.

図9の処理によれば、ICカードOS46は、取得したデータが自分自身に対するものである場合(送信先のファイルシステムIDが、自分自身が実行するファイルシステム52のファイルシステムID#2と一致する場合)、取得したデータに対応する処理を実行し、自分自身に対するものでない場合、処理を実行しない。   According to the processing of FIG. 9, the IC card OS 46 determines that the acquired data is for itself (the file system ID of the transmission destination matches the file system ID # 2 of the file system 52 executed by itself). ), The process corresponding to the acquired data is executed, and if it is not for itself, the process is not executed.

また、ICカードOS46は、処理を実行した結果、処理結果を、他のファイルシステムのICカードOSに送信する場合には、処理結果に送信先のファイルシステムIDを含めるとともに、リーダライタ22に通知するための延長時間を含めるようにしたので、リーダライタ22側で、待ち時間を延長することができる。   In addition, when the processing result is transmitted to the IC card OS of another file system as a result of executing the processing, the IC card OS 46 includes the file system ID of the transmission destination in the processing result and notifies the reader / writer 22 of the processing result. Since the extended time for doing so is included, the waiting time can be extended on the reader / writer 22 side.

以上により、非接触ICカード21が、複数のファイルシステムを有する場合、送信バッファに格納されたデータを受信バッファにも供給するように構成するとともに、各ファイルシステムで実行された結果を他のファイルシステムにも供給する構成としたので、非接触ICカード21の中で、セキュリティを保ちつつ、複数のファイルシステムによる処理を実行させることができる。   As described above, when the non-contact IC card 21 has a plurality of file systems, the data stored in the transmission buffer is also supplied to the reception buffer, and the results executed in each file system are transferred to other files. Since the system is also supplied to the system, it is possible to execute processing by a plurality of file systems in the non-contact IC card 21 while maintaining security.

すなわち、非接触ICカード21内に複数のファイルシステムが設けられている状態で、外部のリーダライタ22により送信された、ひとつのファイルシステムを指定したコマンドに基づいて処理を実行する場合、非接触ICカード21の指定されたファイルシステムにおいて処理が実行された後、他のファイルシステムに処理を実行させる場合(例えば、図9のステップS255でYESの場合)、そのコマンドを、あたかも非接触ICカード21が受信したものと見なすように、受信バッファ44に格納するとともにリーダライタ22にも送信するようにした(例えば、図9のステップS258、図8のステップS203)ので、複数のファイルシステムにおける処理を連携させることができる。   That is, in the case where a plurality of file systems are provided in the non-contact IC card 21, when processing is executed based on a command specifying one file system transmitted from the external reader / writer 22, After the process is executed in the designated file system of the IC card 21, if the other file system is to execute the process (for example, YES in step S255 of FIG. 9), the command is as if it is a non-contact IC card 21 is stored in the reception buffer 44 and transmitted to the reader / writer 22 so as to be regarded as received (for example, step S258 in FIG. 9 and step S203 in FIG. 8). Can be linked.

また、リーダライタ22は、非接触ICカード21の複数のファイルシステムの中の1つのファイルシステムを特定するデータ(ID)を付加したコマンドを送信するだけで、複数のファイルシステムにより実行された結果を、最終的なレスポンスとして受け取ることができる(例えば、図5のステップS14の処理)。   Further, the reader / writer 22 simply transmits a command to which data (ID) specifying one file system among the plurality of file systems of the non-contact IC card 21 is transmitted, and the result executed by the plurality of file systems. Can be received as a final response (for example, the process of step S14 in FIG. 5).

例えば、リーダライタ22にファイルシステムID#1のファイルシステム51に対する処理しかあらかじめ登録されていない場合、一般的には、そのファイルシステムID#1のファイルシステム51のICカードOS45の処理結果しか受け取ることができないが、本発明によれば、リーダライタ22にファイルシステムID#1のファイルシステム51に対する処理しかあらかじめ登録されていない場合であっても、非接触ICカード21の中で、複数のファイルシステムに渡って処理を実行し、その結果を、ICカードOS45からのレスポンスとして送信するようにした(例えば、図5のステップS56)ので、リーダライタ22に前もって登録されているコマンドに対する処理以外の処理であっても、実行させることができる。   For example, when only processing for the file system 51 with the file system ID # 1 is registered in the reader / writer 22 in advance, generally, only the processing result of the IC card OS 45 of the file system 51 with the file system ID # 1 is received. However, according to the present invention, even if only processing for the file system 51 of the file system ID # 1 is registered in the reader / writer 22 in advance, a plurality of file systems are included in the non-contact IC card 21. And the result is transmitted as a response from the IC card OS 45 (for example, step S56 in FIG. 5). Therefore, the processing other than the processing for the command registered in advance in the reader / writer 22 is performed. Even so, it can be executed.

すなわち、リーダライタ22の有するコマンドに制限されず、非接触ICカード21のみが有するコマンドを用いてファイルシステム間通信を行うことができ、処理の柔軟性や安全性を向上させることができる。   That is, it is not limited to the commands that the reader / writer 22 has, and communication between file systems can be performed using commands that only the non-contact IC card 21 has, and the flexibility and safety of processing can be improved.

また、非接触ICカード21内において、リーダライタ22から1つコマンドを受信するだけで(例えば、図5のステップS31の処理でコマンドを受信するだけで)、複数のファイルシステムにおける処理を実行することができるので、リーダライタ22からのコマンドを受ける回数を減らすことができ、通信オーバーヘッドなども少なくなり、もって、最終的なレスポンスを送信するまでの時間を短くすることができる。   Further, in the non-contact IC card 21, only a single command is received from the reader / writer 22 (for example, only a command is received in the process of step S31 in FIG. 5), and processing in a plurality of file systems is executed. Therefore, the number of times of receiving commands from the reader / writer 22 can be reduced, the communication overhead and the like can be reduced, and the time until the final response is transmitted can be shortened.

さらに、ファイルシステム間のファイアウォールを壊すことなく、外部のリーダライタ22からの通信と同様に、非接触ICカード21内の処理を実行することができるので、セキュリティの脆弱性の発生を抑えつつ、非接触ICカード21内が有する複数のファイルシステム間の連携を可能とすることができる。   Furthermore, the processing in the non-contact IC card 21 can be executed similarly to the communication from the external reader / writer 22 without breaking the firewall between the file systems. Cooperation between a plurality of file systems included in the non-contact IC card 21 can be made possible.

また、非接触ICカード21の1つのファイルシステムにより実行された結果を、他のファイルシステムに送信する場合に、同様のデータをリーダライタ22にも送信するようにしたので、リーダライタ22は、処理の途中経過を知ることができ、待ち時間を調整することができる。   In addition, when the result executed by one file system of the non-contact IC card 21 is transmitted to another file system, similar data is also transmitted to the reader / writer 22, so the reader / writer 22 The progress of the process can be known, and the waiting time can be adjusted.

さらに、非接触ICカード21の1つのファイルシステムにより実行された結果を、他のファイルシステムに送信する場合に、その処理結果に、延長時間を含めるようにしたので、リーダライタ22は、待ち時間を延長することができ、タイムアウトになるのを防ぐことができる。   Furthermore, when the result executed by one file system of the non-contact IC card 21 is transmitted to another file system, the extension time is included in the processing result. Can be extended and time-out can be prevented.

なお、以上の例では、ICカードOSが処理を実行した結果、他のファイルシステムのICカードOSに処理をさせる場合に、処理結果に延長時間を含めるようにしたが、延長時間を含めないようにしてもよい。この場合、リーダライタ22が、処理結果が自分自身宛のレスポンスでないと判断した場合に、あらかじめ決められた所定の時間だけ延長するようにすればよい。   In the above example, when the IC card OS executes processing as a result of processing performed by the IC card OS of another file system, the extended time is included in the processing result, but the extended time is not included. It may be. In this case, when the reader / writer 22 determines that the processing result is not a response addressed to itself, the reader / writer 22 may extend the time by a predetermined time.

また、以上の例では、非接触ICカード21に2つのファイルシステム51,52を設けるようにしたが、この個数は2つに限らず、2つ以上の複数のファイルシステムを設ける構成としてもよい。   In the above example, the two file systems 51 and 52 are provided in the non-contact IC card 21, but the number is not limited to two, and a configuration in which two or more file systems are provided may be employed. .

さらに、以上の例(図2の例)では、ICカードOSがそれぞれ、ファイルシステムIDで特定されるファイルシステムを有する構成としたが、1つのICカードOSが、ファイルシステムIDで特定される複数のファイルシステムを読み出して、それに対する処理を実行する構成としてもよい。この場合の非接触ICカード201構成例を、図11に示す。なお、図中、図2と対応する部分については、同一の符号を付してあり、その説明は繰り返しになるので省略する。   Furthermore, in the above example (example of FIG. 2), each IC card OS has a file system specified by the file system ID. However, a plurality of IC card OSs are specified by the file system ID. It is good also as a structure which reads the file system of this and performs the process with respect to it. A configuration example of the non-contact IC card 201 in this case is shown in FIG. In the figure, the portions corresponding to those in FIG.

図11において、非接触ICカード201には、アンテナ41、送受信部42、A/D(アナログ/デジタル)変換・デモジュレーション部43、受信バッファ44、送信バッファ47、D/A(デジタル/アナログ)変換・モジュレーション部48、ファイルシステムID#1のファイルシステム51、および、ファイルシステムID#2のファイルシステム52の他、ICカードOS221がさらに設けられている。   11, a non-contact IC card 201 includes an antenna 41, a transmission / reception unit 42, an A / D (analog / digital) conversion / demodulation unit 43, a reception buffer 44, a transmission buffer 47, and a D / A (digital / analog). In addition to the conversion / modulation unit 48, the file system 51 with the file system ID # 1, and the file system 52 with the file system ID # 2, an IC card OS 221 is further provided.

アンテナ41、送受信部42、A/D変換・デモジュレーション部43、受信バッファ44、送信バッファ47、およびD/A変換・モジュレーション部48の構成は、上述した図2の各部と同様である。   The configurations of the antenna 41, the transmission / reception unit 42, the A / D conversion / demodulation unit 43, the reception buffer 44, the transmission buffer 47, and the D / A conversion / modulation unit 48 are the same as those in FIG.

ICカードOS221は、非接触ICカード21に設けられている複数のファイルシステムに基づく処理をそれぞれ実行する。すなわち、ICカードOS221は、ファイルシステムID#1のファイルシステム51に基づいて、コマンドやレスポンスに対応する処理を実行したり、ファイルシステムID#2のファイルシステム52に基づいて、コマンドやレスポンスに対応する処理を実行する。   The IC card OS 221 executes processing based on a plurality of file systems provided in the non-contact IC card 21. In other words, the IC card OS 221 executes processing corresponding to the command and response based on the file system 51 with the file system ID # 1, or corresponds to the command and response based on the file system 52 with the file system ID # 2. Execute the process.

すなわち、ICカードOS221は、図2のICカードOS45やICカードOS46とように、内部にファイルシステムを有する構成ではなく、別途設けられている複数のファイルシステムのそれぞれに従って、対応する処理を実行する。   That is, the IC card OS 221 does not have a file system inside, like the IC card OS 45 and the IC card OS 46 in FIG. 2, but executes corresponding processing according to each of a plurality of separately provided file systems. .

このように、ICカードOS221そのものにファイルシステムが格納されていなくても、ICカードOS221が、非接触ICカード21に設けられている複数のファイルシステム(ファイルシステム51とファイルシステム52)とを別々に(独立させて)実行するようにすることで、上述した処理と同様の処理を実行することができ、本発明を適用することができる。   As described above, even if the file system is not stored in the IC card OS 221 itself, the IC card OS 221 separates a plurality of file systems (file system 51 and file system 52) provided in the non-contact IC card 21 separately. (Independently), the same processing as described above can be executed, and the present invention can be applied.

具体的には、図5や図9の「ICカードOS45」の処理は、図11のファイルシステムID#1のファイルシステム51に基づく処理を実行するICカードOS221が実行するものとし、図5や図10の「ICカードOS46」の処理は、図11のファイルシステムID#2のファイルシステム52に基づく処理を実行するICカードOS221が実行するものとすればよい。   Specifically, the processing of “IC card OS 45” in FIGS. 5 and 9 is executed by the IC card OS 221 that executes processing based on the file system 51 of the file system ID # 1 in FIG. The processing of the “IC card OS 46” in FIG. 10 may be executed by the IC card OS 221 that executes processing based on the file system 52 with the file system ID # 2 in FIG.

なお、上述した処理では、非接触ICカード21、リーダライタ22、および非接触ICカード23間の通信を、ISO/IEC15693に準拠した規格により行うものとしたが、非接触ICカード21、リーダライタ22、および非接触ICカード23間の通信は、IEEE(The Institute of Electrical and Electronic Engineers)802.11a,802.11b、および802.11gなどの無線LAN(Local Area Network)、またはBluetooth等様々な非接触による通信(無線通信)や、ISO/IEC 7816で規定されている接触式通信、さらには、Ethernet(登録商標)やUSB(Universal Serial Bus)等様々な有線通信であってもよい。   In the above-described processing, communication between the non-contact IC card 21, the reader / writer 22, and the non-contact IC card 23 is performed according to a standard based on ISO / IEC15693. 22 and the contactless IC card 23 are wireless LAN (Local Area Network) such as IEEE (The Institute of Electrical and Electronic Engineers) 802.11a, 802.11b and 802.11g, or various contactless such as Bluetooth. Communication (wireless communication), contact communication defined by ISO / IEC 7816, and various wired communications such as Ethernet (registered trademark) and USB (Universal Serial Bus) may be used.

上述した一連の処理は、ハードウエアにより実行させることもできるし、ソフトウエアにより実行させることもできる。この場合、上述した処理は、図12に示されるようなパーソナルコンピュータにより実行される。   The series of processes described above can be executed by hardware or can be executed by software. In this case, the processing described above is executed by a personal computer as shown in FIG.

図12において、CPU(Central Processing Unit)501は、ROM(Read Only Memory)502、または記憶部508に記憶されているプログラムに従って各種の処理を実行する。RAM(Random Access Memory)503には、CPU501が実行するプログラムやデータなどが適宜記憶される。これらのCPU501、ROM502、およびRAM503は、バス504により相互に接続されている。   In FIG. 12, a CPU (Central Processing Unit) 501 executes various processes according to a program stored in a ROM (Read Only Memory) 502 or a storage unit 508. A RAM (Random Access Memory) 503 appropriately stores programs executed by the CPU 501 and data. The CPU 501, ROM 502, and RAM 503 are connected to each other by a bus 504.

CPU501にはまた、バス504を介して入出力インターフェース505が接続されている。入出力インターフェース505には、キーボード、マウス、マイクロホンなどよりなる入力部506、ディスプレイ、スピーカなどよりなる出力部507が接続されている。CPU501は、入力部506から入力される指令に対応して各種の処理を実行する。そして、CPU501は、処理の結果を出力部507に出力する。   An input / output interface 505 is also connected to the CPU 501 via the bus 504. The input / output interface 505 is connected to an input unit 506 made up of a keyboard, mouse, microphone, and the like, and an output unit 507 made up of a display, a speaker, and the like. The CPU 501 executes various processes in response to commands input from the input unit 506. Then, the CPU 501 outputs the processing result to the output unit 507.

入出力インターフェース505に接続されている記憶部508は、例えばハードディスクからなり、CPU501が実行するプログラムや各種のデータを記憶する。通信部509は、インターネットやローカルエリアネットワークなどのネットワークを介して外部の装置と通信する。   A storage unit 508 connected to the input / output interface 505 includes, for example, a hard disk, and stores programs executed by the CPU 501 and various data. A communication unit 509 communicates with an external device via a network such as the Internet or a local area network.

また、通信部509を介してプログラムを取得し、記憶部508に記憶してもよい。   A program may be acquired via the communication unit 509 and stored in the storage unit 508.

入出力インターフェース505に接続されているドライブ510は、磁気ディスク、光ディスク、光磁気ディスク、或いは半導体メモリなどのリムーバブルメディア521が装着されたとき、それらを駆動し、そこに記録されているプログラムやデータなどを取得する。取得されたプログラムやデータは、必要に応じて記憶部508に転送され、記憶される。   A drive 510 connected to the input / output interface 505 drives a removable medium 521 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, and drives programs and data recorded there. Get etc. The acquired program and data are transferred to and stored in the storage unit 508 as necessary.

一連の処理をソフトウエアにより実行させる場合には、そのソフトウエアを構成するプログラムが、専用のハードウエアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、プログラム格納媒体からインストールされる。   When a series of processing is executed by software, a program constituting the software executes various functions by installing a computer incorporated in dedicated hardware or various programs. For example, the program is installed in a general-purpose personal computer from the program storage medium.

コンピュータにインストールされ、コンピュータによって実行可能な状態とされるプログラムを格納するプログラム格納媒体は、図12に示すように、磁気ディスク(フレキシブルディスクを含む)、光ディスク(CD-ROM(Compact Disc-Read Only Memory),DVD(Digital Versatile Disc)を含む)、光磁気ディスク(MD(Mini-Disc)を含む)、もしくは半導体メモリなどよりなるパッケージメディアであるリムーバブルメディア521、または、プログラムが一時的もしくは永続的に格納されるROM502や、記憶部508を構成するハードディスクなどにより構成される。プログラム格納媒体へのプログラムの格納は、必要に応じてルータ、モデムなどのインターフェースである通信部509を介して、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の通信媒体を利用して行われる。   As shown in FIG. 12, a program storage medium for storing a program that is installed in a computer and is ready to be executed by the computer is a magnetic disk (including a flexible disk), an optical disk (CD-ROM (Compact Disc-Read Only). Memory), DVD (including Digital Versatile Disc)), magneto-optical disk (including MD (Mini-Disc)), or removable media 521, which is a package medium made of semiconductor memory, or the program is temporary or permanent ROM 502 stored in the hard disk, a hard disk constituting the storage unit 508, and the like. The program is stored in the program storage medium using a wired or wireless communication medium such as a local area network, the Internet, or digital satellite broadcasting via a communication unit 509 that is an interface such as a router or a modem as necessary. Done.

なお、本明細書において、プログラム格納媒体に格納されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。   In the present specification, the step of describing the program stored in the program storage medium is not limited to the processing performed in time series according to the described order, but is not necessarily performed in time series. Or the process performed separately is also included.

本発明を適用した通信システムの構成例を示すブロック図である。It is a block diagram which shows the structural example of the communication system to which this invention is applied. 図1の非接触ICカードの構成例を示すブロック図である。It is a block diagram which shows the structural example of the non-contact IC card of FIG. 図1のリーダライタ22の構成例を示すブロック図である。It is a block diagram which shows the structural example of the reader / writer 22 of FIG. リーダライタから送信されるコマンドの構造の例を説明する図である。It is a figure explaining the example of the structure of the command transmitted from a reader / writer. リーダライタと非接触ICカードとの間における処理の例を説明するフローチャートである。It is a flowchart explaining the example of the process between a reader / writer and a non-contact IC card. リーダライタの処理の例を説明するフローチャートである。It is a flowchart explaining the example of a process of a reader / writer. 受信バッファの処理の例を説明するフローチャートである。It is a flowchart explaining the example of a process of a reception buffer. 送信バッファの処理の例を説明するフローチャートである。It is a flowchart explaining the example of a process of a transmission buffer. ファイルシステムID#1のファイルシステムを有するICカードOSが実行する処理の例を説明するフローチャートである。It is a flowchart explaining the example of the process which IC card OS which has a file system of file system ID # 1 performs. ファイルシステムID#2のファイルシステムを有するICカードOSが実行する処理の例を説明するフローチャートである。It is a flowchart explaining the example of the process which IC card OS which has a file system of file system ID # 2 performs. 非接触ICカードの他の構成例を示すブロック図である。It is a block diagram which shows the other structural example of a non-contact IC card. パーソナルコンピュータの構成例を示すブロック図である。And FIG. 16 is a block diagram illustrating a configuration example of a personal computer.

符号の説明Explanation of symbols

11 通信システム, 21 非接触ICカード, 22 リーダライタ, 23 非接触ICカード, 44 受信バッファ, 45 ICカードOS, 46 ICカードOS, 47 送信バッファ, 51 ファイルシステムID#1のファイルシステム, 52 ファイルシステムID#2のファイルシステム, 61 送信部, 62 受信部, 91 送信部, 92 受信部, 93 制御処理部, 94 判定部, 95 タイマ, 120 コマンド, 121 コマンドデータ, 122 ファイルシステムID, 123 データ, 124 CRC, 221 ICカードOS   DESCRIPTION OF SYMBOLS 11 Communication system, 21 Non-contact IC card, 22 Reader / writer, 23 Non-contact IC card, 44 Reception buffer, 45 IC card OS, 46 IC card OS, 47 Transmission buffer, 51 File system ID # 1 file system, 52 files File system of system ID # 2, 61 transmission unit, 62 reception unit, 91 transmission unit, 92 reception unit, 93 control processing unit, 94 determination unit, 95 timer, 120 command, 121 command data, 122 file system ID, 123 data , 124 CRC, 221 IC card OS

Claims (10)

情報処理装置と、複数のファイルシステムを有する情報端末装置とが通信を行う通信システムにおいて、
前記情報処理装置は、
前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を送信する第1の送信手段と、
前記第1の送信手段により送信した前記指令に対する前記情報端末装置からの応答を受信する第1の受信手段と
を備え、
前記情報端末装置は、
前記第1の送信手段により送信されてきた前記指令を受信する第2の受信手段と、
前記第2の受信手段により受信された前記指令を記憶する受信記憶手段と、
複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段により記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行する実行手段と、
前記実行手段により実行された処理の結果である実行結果を、前記情報端末装置に送信するために記憶するとともに、前記実行結果を、前記受信記憶手段に供給する送信記憶手段と、
前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する第2の送信手段と
を備え、
前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め、
前記送信記憶手段は、前記実行手段により実行された処理の結果である前記実行結果を記憶するとともに、前記実行結果を前記受信記憶手段に供給し、
前記第2の送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し、
前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し、
前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する
通信システム。
In a communication system in which an information processing device communicates with an information terminal device having a plurality of file systems,
The information processing apparatus includes:
A first transmission means for transmitting a command including a file system ID for specifying one file system as a transmission destination among a plurality of file systems included in the information terminal device;
First receiving means for receiving a response from the information terminal device to the command transmitted by the first transmitting means;
The information terminal device
Second receiving means for receiving the command transmitted by the first transmitting means;
Receiving storage means for storing the command received by the second receiving means;
The file corresponding to one file system of a plurality of file systems, acquiring the command stored by the reception storage means, and the file system ID included in the acquired command corresponding to itself An execution means for executing a process corresponding to the command when the file system ID matches the system;
A transmission storage means for storing an execution result, which is a result of the process executed by the execution means, for transmission to the information terminal device, and supplying the execution result to the reception storage means;
Second execution means for transmitting the execution result stored in the transmission storage means to the information terminal device;
As a result of executing the process corresponding to the command, when the execution unit includes a process executed by another file system of the plurality of file systems included in the information terminal device, the execution result includes a transmission destination Including another file system ID identifying the other file system,
The transmission storage means stores the execution result that is a result of the process executed by the execution means, and supplies the execution result to the reception storage means,
The second transmission unit transmits the execution result stored in the transmission storage unit as a response to the information processing apparatus,
The reception storage means further stores the execution result supplied from the transmission storage means,
The execution unit acquires the execution result stored in the reception storage unit, and the file system ID of the transmission destination included in the acquired execution result specifies the file system corresponding to itself. A communication system that further executes a process corresponding to the execution result when it matches.
前記情報処理装置は、
前記第1の送信手段により送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定する待機時間設定手段をさらに備え、
前記待機時間設定手段は、前記第1の受信手段により受信された前記情報端末装置からの前記応答が自分自身への応答でない場合、前記待機時間を延長する
請求項1に記載の通信システム。
The information processing apparatus includes:
A standby time setting unit for setting a standby time until a response corresponding to the command transmitted by the first transmission unit is transmitted;
The communication system according to claim 1, wherein the standby time setting unit extends the standby time when the response from the information terminal device received by the first reception unit is not a response to itself.
複数のファイルシステムを有する情報端末装置と通信を行う情報処理装置において、
前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を送信する送信手段と、
前記送信手段により送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定する待機時間設定手段と、
前記第1の送信手段により送信した前記指令に対する前記情報端末装置からの応答を受信する第1の受信手段と
を備え、
前記待機時間設定手段は、前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間を延長する
情報処理装置。
In an information processing apparatus that communicates with an information terminal apparatus having a plurality of file systems,
Transmitting means for transmitting a command including a file system ID for specifying one file system as a transmission destination among a plurality of file systems of the information terminal device;
A waiting time setting means for setting a waiting time until a response corresponding to the command transmitted by the transmitting means is transmitted;
First receiving means for receiving a response from the information terminal device to the command transmitted by the first transmitting means;
The waiting time setting means extends the waiting time when the response from the information terminal device received by the receiving means is not a response to itself.
前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記応答には、前記待機時間を延長するための延長時間がさらに含まれ、
前記待機時間設定手段は、前記受信手段により受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記応答に含まれる前記延長時間に基づいて、前記待機時間を延長する
請求項3に記載の情報処理装置。
If the response from the information terminal device received by the receiving means is not a response to itself, the response further includes an extension time for extending the waiting time,
The waiting time setting means extends the waiting time based on the extension time included in the response when the response from the information terminal apparatus received by the receiving means is not a response to itself. The information processing apparatus according to claim 3.
複数のファイルシステムを有する情報端末装置と通信を行う情報処理装置の情報処理方法において、
前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を送信し、
送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定し、
送信した前記指令に対する前記情報端末装置からの応答を受信し、
受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間を延長する
ステップを含む情報処理方法。
In an information processing method of an information processing apparatus that communicates with an information terminal apparatus having a plurality of file systems,
Among the plurality of file systems that the information terminal device has, a command including a file system ID that identifies one file system as a transmission destination is transmitted,
Set the waiting time until a response corresponding to the transmitted command is sent,
Receiving a response from the information terminal device to the transmitted command,
An information processing method including a step of extending the waiting time when the received response from the information terminal device is not a response to itself.
複数のファイルシステムを有する情報端末装置と通信を行い、処理を実行するプログラムであって、
前記情報端末装置が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を送信し、
送信した前記指令に対応する応答が送信されてくるまでの待機時間を設定し、
送信した前記指令に対する前記情報端末装置からの応答を受信し、
受信された前記情報端末装置からの前記応答が、自分自身への応答でない場合、前記待機時間を延長する
ステップを含む処理をコンピュータに実行させるプログラム。
A program for communicating with an information terminal device having a plurality of file systems and executing processing,
Among the plurality of file systems that the information terminal device has, a command including a file system ID that identifies one file system as a transmission destination is transmitted,
Set the waiting time until a response corresponding to the transmitted command is sent,
Receiving a response from the information terminal device to the transmitted command,
A program for causing a computer to execute a process including a step of extending the waiting time when the received response from the information terminal device is not a response to itself.
複数のファイルシステムを有し、情報処理装置と通信を行う情報端末装置において、
前記情報処理装置から送信されてきた指令であって、自分自身が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を受信する受信手段と、
前記受信手段により受信された前記指令を記憶する受信記憶手段と、
複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段により記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行する実行手段と、
前記実行手段により実行された処理の結果である実行結果を、前記情報端末装置に送信するために記憶するとともに、前記実行結果を、前記受信記憶手段に供給する送信記憶手段と、
前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する送信手段と
を備え、
前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め、
前記送信記憶手段は、前記実行手段により実行された処理の結果である前記実行結果を記憶するとともに、前記実行結果を前記受信記憶手段に供給し、
前記送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し、
前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し、
前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する
情報端末装置。
In an information terminal device having a plurality of file systems and communicating with an information processing device,
A receiving unit that receives a command including a file system ID that identifies one file system as a transmission destination among a plurality of file systems that the command is transmitted from the information processing apparatus;
Receiving storage means for storing the command received by the receiving means;
The file corresponding to one file system of a plurality of file systems, acquiring the command stored by the reception storage means, and the file system ID included in the acquired command corresponding to itself An execution means for executing a process corresponding to the command when the file system ID matches the system;
A transmission storage means for storing an execution result, which is a result of the process executed by the execution means, for transmission to the information terminal device, and supplying the execution result to the reception storage means;
Transmission means for transmitting the execution result stored in the transmission storage means to the information terminal device,
As a result of executing the process corresponding to the command, when the execution unit includes a process executed by another file system of the plurality of file systems included in the information terminal device, the execution result includes a transmission destination Including another file system ID identifying the other file system,
The transmission storage means stores the execution result that is a result of the process executed by the execution means, and supplies the execution result to the reception storage means,
The transmission means transmits the execution result stored in the transmission storage means as a response to the information processing apparatus,
The reception storage means further stores the execution result supplied from the transmission storage means,
The execution unit acquires the execution result stored in the reception storage unit, and the file system ID of the transmission destination included in the acquired execution result specifies the file system corresponding to itself. Information terminal apparatus that further executes a process corresponding to the execution result when it matches.
前記実行手段は、前記指令に対応する処理を実行した結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDとともに、前記情報処理装置に前記指令に対する応答を送信するまでの待機時間を延長するための延長時間をさらに含め、
前記送信記憶手段は、前記実行結果を記憶するとともに、前記実行結果を前記受信記憶手段に供給し、
前記送信手段は、前記送信記憶手段に記憶された前記実行結果を、前記情報処理装置に対する応答として送信し、
前記受信記憶手段は、前記送信記憶手段から供給された前記実行結果をさらに記憶し、
前記実行手段は、前記受信記憶手段に記憶された前記実行結果を取得し、取得した前記実行結果に含まれる送信先のファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記実行結果に対応する処理をさらに実行する
請求項7に記載の情報端末装置。
As a result of executing the process corresponding to the command, when the execution unit includes a process executed by another file system of the plurality of file systems included in the information terminal device, the execution result includes a transmission destination Along with another file system ID that identifies the other file system, further includes an extension time for extending a waiting time until a response to the command is transmitted to the information processing apparatus,
The transmission storage means stores the execution result and supplies the execution result to the reception storage means.
The transmission means transmits the execution result stored in the transmission storage means as a response to the information processing apparatus,
The reception storage means further stores the execution result supplied from the transmission storage means,
The execution unit acquires the execution result stored in the reception storage unit, and the file system ID of the transmission destination included in the acquired execution result specifies the file system corresponding to itself. The information terminal device according to claim 7, further executing a process corresponding to the execution result in the case where it matches.
複数のファイルシステムを有し、情報処理装置と通信を行う情報端末装置の情報処理方法において、
前記情報処理装置から送信されてきた指令であって、自分自身が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を受信し、
受信された前記指令を受信記憶手段に記憶させ、
複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段に記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行し、その結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め、
実行された処理の結果である実行結果を、前記情報端末装置に送信するために送信記憶手段に記憶させるとともに、前記実行結果を、前記受信記憶手段に供給し、
前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する
ステップを含む情報処理方法。
In an information processing method of an information terminal device having a plurality of file systems and communicating with an information processing device,
A command transmitted from the information processing apparatus, and receives a command including a file system ID that identifies one file system as a transmission destination among a plurality of file systems that the device itself has,
The received command is stored in the reception storage means,
The file corresponding to one file system of a plurality of file systems, acquiring the command stored in the reception storage means, and the file system ID included in the acquired command corresponding to itself If the file system ID matches the system, the process corresponding to the command is executed. As a result, there is a process executed by another file system among the plurality of file systems of the information terminal device. In the case, the execution result includes another file system ID that identifies the other file system as a transmission destination,
An execution result that is a result of the executed process is stored in a transmission storage unit for transmission to the information terminal device, and the execution result is supplied to the reception storage unit,
An information processing method including a step of transmitting the execution result stored in the transmission storage means to the information terminal device.
複数のファイルシステムを有し、情報処理装置と通信を行い、処理を実行するプログラムであって、
前記情報処理装置から送信されてきた指令であって、自分自身が有する複数のファイルシステムのうち、送信先として1つのファイルシステムを特定するファイルシステムIDを含む指令を受信し、
受信された前記指令を受信記憶手段に記憶させ、
複数のファイルシステムのうちの1つのファイルシステムに対応するとともに、前記受信記憶手段に記憶された前記指令を取得し、取得した前記指令に含まれる前記ファイルシステムIDが、自分自身に対応する前記ファイルシステムを特定するファイルシステムIDと一致する場合に、前記指令に対応する処理を実行し、その結果、前記情報端末装置が有する複数のファイルシステムのうちの他のファイルシステムにより実行される処理がある場合、前記実行結果に、送信先として前記他のファイルシステムを特定する他のファイルシステムIDを含め、
実行された処理の結果である実行結果を、前記情報端末装置に送信するために送信記憶手段に記憶させるとともに、前記実行結果を、前記受信記憶手段に供給し、
前記送信記憶手段に記憶された前記実行結果を、前記情報端末装置に送信する
ステップを含む処理をコンピュータに実行させるプログラム。
A program that has a plurality of file systems, communicates with an information processing apparatus, and executes processing,
A command transmitted from the information processing apparatus, and receives a command including a file system ID that identifies one file system as a transmission destination among a plurality of file systems that the device itself has,
The received command is stored in the reception storage means,
The file corresponding to one file system of a plurality of file systems, acquiring the command stored in the reception storage means, and the file system ID included in the acquired command corresponding to itself If the file system ID matches the system, the process corresponding to the command is executed. As a result, there is a process executed by another file system among the plurality of file systems of the information terminal device. In the case, the execution result includes another file system ID that identifies the other file system as a transmission destination,
An execution result that is a result of the executed process is stored in a transmission storage unit for transmission to the information terminal device, and the execution result is supplied to the reception storage unit,
A program for causing a computer to execute a process including a step of transmitting the execution result stored in the transmission storage means to the information terminal device.
JP2005215905A 2005-07-26 2005-07-26 COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE AND INFORMATION PROCESSING METHOD, INFORMATION TERMINAL DEVICE, INFORMATION PROCESSING METHOD, AND PROGRAM Expired - Fee Related JP4784189B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005215905A JP4784189B2 (en) 2005-07-26 2005-07-26 COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE AND INFORMATION PROCESSING METHOD, INFORMATION TERMINAL DEVICE, INFORMATION PROCESSING METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005215905A JP4784189B2 (en) 2005-07-26 2005-07-26 COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE AND INFORMATION PROCESSING METHOD, INFORMATION TERMINAL DEVICE, INFORMATION PROCESSING METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2007034600A true JP2007034600A (en) 2007-02-08
JP4784189B2 JP4784189B2 (en) 2011-10-05

Family

ID=37793800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005215905A Expired - Fee Related JP4784189B2 (en) 2005-07-26 2005-07-26 COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE AND INFORMATION PROCESSING METHOD, INFORMATION TERMINAL DEVICE, INFORMATION PROCESSING METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP4784189B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010016332A1 (en) * 2008-08-07 2010-02-11 ソニー株式会社 Communication device, communication method, and program
US9342325B2 (en) 2012-05-17 2016-05-17 Google Technology Holdings LLC Synchronizing launch-configuration information between first and second application environments that are operable on a multi-modal device
US9354900B2 (en) 2011-04-28 2016-05-31 Google Technology Holdings LLC Method and apparatus for presenting a window in a system having two operating system environments
US9367331B2 (en) 2009-07-20 2016-06-14 Google Technology Holdings LLC Multi-environment operating system
US9372711B2 (en) 2009-07-20 2016-06-21 Google Technology Holdings LLC System and method for initiating a multi-environment operating system
US9389877B2 (en) 2009-07-20 2016-07-12 Google Technology Holdings LLC Multi-environment operating system
US9417753B2 (en) 2012-05-02 2016-08-16 Google Technology Holdings LLC Method and apparatus for providing contextual information between operating system environments

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259138A (en) * 2001-03-02 2002-09-13 Jcb:Kk Integrated circuit and ic card
JP2002269528A (en) * 2001-03-09 2002-09-20 Tamura Electric Works Ltd Ic card
JP2003196612A (en) * 2001-12-26 2003-07-11 Denso Wave Inc Ic card system, card reader, ic card, and communication control method for ic card system
JP2003345451A (en) * 2002-05-22 2003-12-05 Seiko Epson Corp Module management system, module management terminal, data structure of program for terminal and module with use restrictions, and module management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002259138A (en) * 2001-03-02 2002-09-13 Jcb:Kk Integrated circuit and ic card
JP2002269528A (en) * 2001-03-09 2002-09-20 Tamura Electric Works Ltd Ic card
JP2003196612A (en) * 2001-12-26 2003-07-11 Denso Wave Inc Ic card system, card reader, ic card, and communication control method for ic card system
JP2003345451A (en) * 2002-05-22 2003-12-05 Seiko Epson Corp Module management system, module management terminal, data structure of program for terminal and module with use restrictions, and module management method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010016332A1 (en) * 2008-08-07 2010-02-11 ソニー株式会社 Communication device, communication method, and program
JP2010039913A (en) * 2008-08-07 2010-02-18 Sony Corp Communication device, communication method and program
CN102112992A (en) * 2008-08-07 2011-06-29 索尼公司 Communication device, communication method, and program
US9367331B2 (en) 2009-07-20 2016-06-14 Google Technology Holdings LLC Multi-environment operating system
US9372711B2 (en) 2009-07-20 2016-06-21 Google Technology Holdings LLC System and method for initiating a multi-environment operating system
US9389877B2 (en) 2009-07-20 2016-07-12 Google Technology Holdings LLC Multi-environment operating system
US9354900B2 (en) 2011-04-28 2016-05-31 Google Technology Holdings LLC Method and apparatus for presenting a window in a system having two operating system environments
US9417753B2 (en) 2012-05-02 2016-08-16 Google Technology Holdings LLC Method and apparatus for providing contextual information between operating system environments
US9342325B2 (en) 2012-05-17 2016-05-17 Google Technology Holdings LLC Synchronizing launch-configuration information between first and second application environments that are operable on a multi-modal device

Also Published As

Publication number Publication date
JP4784189B2 (en) 2011-10-05

Similar Documents

Publication Publication Date Title
JP7352613B2 (en) Power receiving device, method, and program
JP4784189B2 (en) COMMUNICATION SYSTEM, INFORMATION PROCESSING DEVICE AND INFORMATION PROCESSING METHOD, INFORMATION TERMINAL DEVICE, INFORMATION PROCESSING METHOD, AND PROGRAM
EP3829221B1 (en) Communication device and computer program
JP4092692B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
KR100725932B1 (en) Method of operating wireless usb apparatus and wireless usb apparatus using the same
US8621126B2 (en) Communication device, communication scheme determination method, and program
CN103503323B (en) Radio frequency communication method, device, and terminal equipment for near field communication
US11017622B2 (en) Communications system and communications apparatus
JP4706702B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2007066042A (en) Application provision system, mobile terminal device, server apparatus, application provision method and computer program
JP2009272874A (en) Communication apparatus, communicating method, program, and communicating system
JP2013041349A (en) Communication device, control method, and program
EP2996256B1 (en) Method, device and system for controlling nfc radio frequency communication
JP2007043644A (en) Wireless connection system and wireless connection method
US8259946B2 (en) Communication apparatus, reader/writer, communication system, and communication method
JP2009251916A (en) Communication terminal, communication program, and communication method
JP2011154691A (en) Communication terminal, server device, communication method and program
JP6447625B2 (en) COMMUNICATION CIRCUIT, COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMPUTER PROGRAM
JP2009284029A (en) Communication apparatus, communication system, communication method and program
JP5211826B2 (en) Information processing apparatus, information processing system, information processing method, and computer program
JP2006157392A (en) Information processing apparatus and method, recording medium and communication control program
JP5151737B2 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and program
JP4517739B2 (en) Wireless communication system, wireless communication apparatus, wireless communication method, and computer program
JP4313223B2 (en) Signal generator

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110317

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110516

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

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

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

Free format text: PAYMENT UNTIL: 20140722

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees