JP6340230B2 - COMMUNICATION FUNCTION PROVIDING DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION FUNCTION PROVIDING METHOD - Google Patents

COMMUNICATION FUNCTION PROVIDING DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION FUNCTION PROVIDING METHOD Download PDF

Info

Publication number
JP6340230B2
JP6340230B2 JP2014073511A JP2014073511A JP6340230B2 JP 6340230 B2 JP6340230 B2 JP 6340230B2 JP 2014073511 A JP2014073511 A JP 2014073511A JP 2014073511 A JP2014073511 A JP 2014073511A JP 6340230 B2 JP6340230 B2 JP 6340230B2
Authority
JP
Japan
Prior art keywords
function
communication
electronic device
standard interface
writer
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.)
Expired - Fee Related
Application number
JP2014073511A
Other languages
Japanese (ja)
Other versions
JP2015197688A (en
Inventor
典之 高木
典之 高木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo 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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP2014073511A priority Critical patent/JP6340230B2/en
Publication of JP2015197688A publication Critical patent/JP2015197688A/en
Application granted granted Critical
Publication of JP6340230B2 publication Critical patent/JP6340230B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、上位装置と、上位装置からの指令に従って処理を実行するカードリーダライタ等の電子機器デバイスとの間で情報の送受信を行う通信機能を提供する通信機能提供装置、通信システム、および通信機能提供方法に関するものである。   The present invention relates to a communication function providing device, a communication system, and a communication that provide a communication function for transmitting and receiving information between a host device and an electronic device such as a card reader / writer that executes processing according to a command from the host device. It relates to a function providing method.

通常、カードリーダライタ等の電子機器デバイスは、通信線(通信ケーブル)を介して上位装置と接続され、上位装置からの指令に従って処理を実行するように構成されている。このように、上位装置と電子機器デバイスとを含む通信システムにおいて、通信を確立するためには、RS-232C方式、パラレルポート方式、USB(Universal Serial Bus)接続方式など種々の通信方式が採用されている。   Usually, an electronic device such as a card reader / writer is connected to a host device via a communication line (communication cable) and is configured to execute processing in accordance with a command from the host device. As described above, in the communication system including the host device and the electronic device, various communication methods such as the RS-232C method, the parallel port method, and the USB (Universal Serial Bus) connection method are adopted in order to establish communication. ing.

たとえばカードリーダライタを使用している通信システム(情報処理システム)においては、アプリケーションなどのソフトウェアを作成し、上位装置側からカードリーダライタを制御することになる。   For example, in a communication system (information processing system) using a card reader / writer, software such as an application is created, and the card reader / writer is controlled from the host device side.

このような状況において、使用中のカードリーダライタを別のカードリーダライタに交換する場合、通常これらのソフトウェアを作成し直して使用することになる。近年、コスト削減、システム仕様変更、標準化等の目的で、それまで使用していたカードリーダライタをPC/SC(Personal Computer/Smart Card)対応のカードリーダライタに交換する例が増えてきている。この場合、ソフトウェアを作成し直すためには、このPC/SCの仕様を理解した上で、これに準じた形に作り直し、使用することになる。   In such a situation, when replacing a card reader / writer in use with another card reader / writer, these software are usually recreated and used. In recent years, for the purpose of cost reduction, system specification change, standardization, etc., an example of replacing a card reader / writer used so far with a card reader / writer compatible with PC / SC (Personal Computer / Smart Card) is increasing. In this case, in order to recreate the software, after understanding the specifications of the PC / SC, the software is remade and used in accordance with the specification.

特許文献1には、アプリケーションプログラムを備える上位装置と、上位装置との間で通信を行うとともに、その通信結果に基づいて所定の処理を実行する電子機器デバイスと、上位装置と電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェアとから構成された情報システムが記載されている。この情報システムにおいては、通信制御ソフトウェアは、アプリケーションプログラムによって呼び出され、同種の処理を実行する、異なる電子機器デバイスに使用可能な互いに共通するAPI(Application Program Interface)を有し、アプリケーションプログラムは、このAPIに対応するプログラミングインタフェースを含んでいる。   Patent Document 1 discloses an electronic device that performs communication between a host device having an application program and a host device, and executes predetermined processing based on the communication result, and a host device and an electronic device device. An information system composed of communication control software that provides a communication function between them is described. In this information system, the communication control software is called by an application program and has a common API (Application Program Interface) that can be used for different electronic device devices that execute the same type of processing. A programming interface corresponding to the API is included.

なお、APIとは、あるプラットフォーム(OSやミドルウェア)向けのソフトウェアを開発する際に使用できる命令や関数の集合、また、それらを利用するためのプログラム上の手続きを定めた規約の集合のことをいう。APIは、デバイスの持つすべての機能を確立するためのプログラミングを必要とせず、多くの通信制御ソフトウェアが共通して利用する機能は、ミドルウェアなどの形でまとめて提供され、個々の開発者は規約に従ってその機能を「呼び出す」だけで、自分でプログラミングすることなくその機能を利用したソフトウェアを作成することができるという利点を有する。このソフトウェアは、個々のデバイスごとや、個々のインタフェースごとに対応して上位装置に格納されている。   The API is a set of instructions and functions that can be used when developing software for a certain platform (OS and middleware), and a set of rules that define a program procedure for using them. Say. API does not require programming to establish all the functions of the device, and functions commonly used by many communication control software are provided together in the form of middleware, etc. Therefore, it is possible to create software using the function by simply “calling” the function without programming by yourself. This software is stored in the host device for each individual device and each individual interface.

特開2009−86832号公報JP 2009-86832 A

既存の通信システム(情報処理システム)においては、PC/SC対応のカードリーダライタへの交換に伴い、それまで使用していたカードリーダライタを制御しているソフトウェア、特に通信部分のソフトウェアをPC/SC仕様に合わせて大幅に作り直す必要がある。さらに、PC/SC仕様に関する知識が乏しいと、ソフトウェアの修正、作り直しをすることができない。   In an existing communication system (information processing system), with the replacement with a PC / SC compatible card reader / writer, the software that controls the card reader / writer used so far, especially the software of the communication part is installed on the PC / SC. It needs to be reworked to meet the SC specifications. Furthermore, if the knowledge about the PC / SC specification is poor, the software cannot be modified or recreated.

特許文献1に記載の情報システムにおいても、コスト削減等でPC/SC仕様のカードリーダライタに交換する場合は、APIのみの提供である場合、確かにアプリケーションプログラムなど上位ソフトウェアは、共通APIをコールしているためそのままで良いが、基本通信機能を提供するソフトウェアは、PC/SC仕様にあわせて大幅に作成し直す必要がある。   Even in the information system described in Patent Document 1, when replacing with a card reader / writer of the PC / SC specification for cost reduction or the like, if only API is provided, the upper software such as an application program surely calls the common API. However, the software that provides the basic communication function needs to be recreated significantly in accordance with the PC / SC specification.

本発明の目的は、電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェアの修正に多大な工数をかけずに、既存のアプリケーションとの互換性を保つことが可能な通信機能提供装置、通信システム、および通信機能提供方法を提供することにある。   An object of the present invention is to provide a communication function providing apparatus capable of maintaining compatibility with an existing application without taking a great deal of man-hours for correcting communication control software that provides a communication function with an electronic device. A communication system and a communication function providing method are provided.

本発明の第1の観点は、電子機器デバイスとの間で情報の送受信を行う通信機能を提供する通信機能提供装置であって、前記電子機器デバイスの動作を制御するアプリケーションプログラム部と、前記電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェア部と、所定のオペレーティングシステム(OS)環境において同類の前記電子機器デバイスの仕様に依存しない標準インタフェース仕様に応じて前記電子機器デバイス関連のリソースを管理するためのリソースマネージャと、前記標準インタフェース仕様対応の電子機器デバイスを制御するための標準インタフェース仕様対応デバイスドライバ部と、前記通信制御ソフトウェア部と前記リソースマネージャとの間で前記標準インタフェース仕様対応の基本通信機能を提供する標準インタフェース仕様変換部とを有する。これにより、既存アプリケーションとの互換性を保つことができる。つまり、標準インタフェース仕様、たとえばPC/SC未対応のカードリーダライタに対して使用していた既存のアプリケーションであってもそのまま使用することができる。このため、既存アプリケーションにほとんど手を加えることなく、また、標準インタフェース仕様、たとえばPC/SC仕様を既存アプリケーションで意識することなく、標準インタフェース仕様対応の電子機器デバイス、たとえばカードリーダライタを制御することができる。さらに、PC/SC対応のカードリーダライタであれば、他のPC/SC対応のカードリーダライタであっても、既存システムで使用できることにもなる。
A first aspect of the present invention is a communication function providing apparatus that provides a communication function for transmitting and receiving information to and from an electronic device device, the application program unit controlling the operation of the electronic device device, and the electronic device A communication control software unit that provides a communication function with the device and a resource related to the electronic device according to a standard interface specification that does not depend on the specification of the same electronic device in a predetermined operating system (OS) environment A resource manager for managing the device, a device driver unit that supports the standard interface specification for controlling the electronic device device that supports the standard interface specification, and the standard interface specification is supported between the communication control software unit and the resource manager. Provide basic communication functions And a standard interface specification conversion section. Thereby, compatibility with an existing application can be maintained. That is, even an existing application used for a standard reader specification, for example, a card reader / writer not compatible with PC / SC, can be used as it is. For this reason, it is possible to control an electronic device device, such as a card reader / writer, that conforms to the standard interface specification, with little modification to the existing application and without being aware of the standard interface specification, such as the PC / SC specification, in the existing application. Can do. Furthermore, if it is a PC / SC compatible card reader / writer, other PC / SC compatible card reader / writers can be used in the existing system.

好適には、前記通信制御ソフトウェア部は、前記リソースマネージャを通して、前記電子機器デバイスとの間で通信機能を提供し、前記標準インタフェース仕様変換部は、前記通信制御ソフトウェア部の一部として設けられている。これにより、通信制御ソフトウェア部とリソースマネージャ間において変換機能を容易にかつ的確に実現することが可能であることはもとより、通信制御ソフトウェア部の通信制御ソフトウェアの修正を極力減らすことができる。   Preferably, the communication control software unit provides a communication function with the electronic device through the resource manager, and the standard interface specification conversion unit is provided as a part of the communication control software unit. Yes. As a result, the conversion function between the communication control software unit and the resource manager can be easily and accurately realized, and correction of the communication control software in the communication control software unit can be reduced as much as possible.

好適には、前記標準インタフェース仕様変換部は、標準インタフェース仕様対応の変換関数群を備えている。好適には、前記標準インタフェース仕様対応の変換関数群は、前記電子機器デバイスとの通信を確立するための第1関数と、前記電子機器デバイスとの通信を終息するための第2関数と、前記電子機器デバイスの処理対象とのデータの送受信を行うための第3関数と、前記電子機器デバイスの情報を取得するための第4関数と、前記電子機器デバイス特有の機能に関するコマンド/レスポンスの各データを送受信するための第5関数を少なくとも含む。これにより、電子機器デバイスを標準インタフェース仕様対応の電子機器デバイスに交換する場合、アプリケーションプログラムを変更せずに既存の資産を使用できる。   Preferably, the standard interface specification conversion unit includes a conversion function group corresponding to the standard interface specification. Preferably, the conversion function group corresponding to the standard interface specification includes a first function for establishing communication with the electronic device, a second function for terminating communication with the electronic device, Command / response data relating to a third function for performing transmission / reception of data with the processing target of the electronic device, a fourth function for obtaining information on the electronic device, and a function specific to the electronic device. At least a fifth function for transmitting and receiving. As a result, when an electronic device is replaced with an electronic device that conforms to the standard interface specification, existing assets can be used without changing the application program.

好適には、前記電子機器デバイスはカードリーダライタである。また、好適には、前記標準インタフェース仕様はPC/SC(Personal Computer/Smart Card)である。   Preferably, the electronic device is a card reader / writer. Preferably, the standard interface specification is PC / SC (Personal Computer / Smart Card).

本発明の第2の観点の通信システムは、上位装置と、前記上位装置との間で通信を行い、当該通信の結果に基づいて所定の処理を実行する電子機器デバイスと、を有し、前記上位装置は、前記電子機器デバイスの動作を制御するアプリケーションプログラム部と、前記電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェア部と、所定のオペレーティングシステム(OS)環境において同類の前記電子機器デバイスの仕様に依存しない標準インタフェース仕様に応じて前記電子機器デバイス関連のリソースを管理するためのリソースマネージャと、標準インタフェース仕様対応の電子機器デバイスを制御するためのインタフェースを提供する標準インタフェース仕様対応デバイスドライバ部と、前記通信制御ソフトウェア部と前記リソースマネージャとの間で前記標準インタフェース仕様対応の基本通信機能を提供する標準インタフェース仕様変換部とを有し、前記通信制御ソフトウェア部は、前記リソースマネージャを通して、前記電子機器デバイスとの間で通信機能を提供し、前記標準インタフェース仕様変換部は、前記通信制御ソフトウェア部の一部として設けられ、前記標準インタフェース仕様変換部は、標準インタフェース仕様対応の変換関数群を備え、前記標準インタフェース仕様対応の変換関数群は、前記電子機器デバイスとの通信を確立するための第1関数と、前記電子機器デバイスとの通信を終息するための第2関数と、前記電子機器デバイスの処理対象とのデータの送受信を行うための第3関数と、前記電子機器デバイスの情報を取得するための第4関数と、前記電子機器デバイス特有の機能に関するコマンド/レスポンスの各データを送受信するための第5関数と、を少なくとも含み、前記電子機器デバイスはカードリーダライタである。これにより、既存アプリケーションとの互換性を保つことができる。つまり、標準インタフェース仕様、たとえばPC/SC未対応の電子機器デバイスであるカードリーダライタに対して使用していた既存のアプリケーションであってもそのまま使用することができる。このため、既存アプリケーションにほとんど手を加えることなく、また、標準インタフェース仕様、たとえばPC/SC仕様を既存アプリケーションで意識することなく、標準インタフェース仕様対応の電子機器デバイス、たとえばカードリーダライタを制御することができる。さらに、PC/SC対応のカードリーダライタであれば、他のどんなPC/SC対応のカードリーダライタであっても、既存システムで使用できることにもなる。
A communication system according to a second aspect of the present invention includes a host device and an electronic device that performs communication between the host device and executes predetermined processing based on a result of the communication, The host device includes an application program unit that controls the operation of the electronic device, a communication control software unit that provides a communication function with the electronic device, and a similar electronic device in a predetermined operating system (OS) environment. Corresponding to the standard interface specification that provides a resource manager for managing the resources related to the electronic device according to the standard interface specification independent of the specification of the device, and an interface for controlling the electronic device corresponding to the standard interface specification A device driver unit, the communication control software unit, Possess a standard interface specification conversion section that provides basic communication functions of the standard interface specifications corresponding to and from the resource manager, the communication control software unit, through the resource manager, the communication function between the electronic equipment device The standard interface specification conversion unit is provided as part of the communication control software unit, and the standard interface specification conversion unit includes a conversion function group corresponding to the standard interface specification, and the conversion corresponding to the standard interface specification. The function group includes a first function for establishing communication with the electronic device, a second function for terminating communication with the electronic device, and data transmission / reception with the processing target of the electronic device. And a third function for performing information and obtaining information on the electronic device 4 and functions, and a fifth function for sending and receiving the data of the command / response relating to the electronic equipment device-specific functions, including at least, the electronic equipment device is a card reader-writer. Thereby, compatibility with an existing application can be maintained. That is, even an existing application used for a card reader / writer which is an electronic device device not compatible with standard interface specifications, for example, PC / SC, can be used as it is. For this reason, it is possible to control an electronic device device, such as a card reader / writer, that conforms to the standard interface specification, with little modification to the existing application and without being aware of the standard interface specification, such as the PC / SC specification, in the existing application. Can do. Furthermore, any other PC / SC compatible card reader / writer can be used in the existing system as long as it is a PC / SC compatible card reader / writer.

本発明の第3の観点は、電子機器デバイスとの間で情報の送受信を行う通信機能を提供する通信機能提供方法であって、前記電子機器デバイスはカードリーダライタであり、
前記電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェア部と、所定のオペレーティングシステム(OS)環境において同類の前記電子機器デバイスの仕様に依存しない標準インタフェース仕様に応じて前記電子機器デバイス関連のリソースを管理するためのリソースマネージャとの間で、標準インタフェース仕様変換部により、前記標準インタフェース仕様対応の基本通信機能を提供し、標準インタフェース仕様対応デバイスドライバ部により前記標準インタフェース仕様対応の電子機器デバイスを制御するためのインタフェースを提供し、提供された通信機能およびインタフェースを通して、前記電子機器デバイスの動作をアプリケーションプログラム部により制御し、前記通信制御ソフトウェア部により、前記リソースマネージャを通して、前記電子機器デバイスとの間で通信機能を提供し、前記標準インタフェース仕様変換部は、前記通信制御ソフトウェア部の一部として設け、前記標準インタフェース仕様変換部には、少なくとも第1関数、第2関数、第3関数、第4関数、および第5関数を含む標準インタフェース仕様対応の変換関数群を形成し、前記電子機器デバイスとの通信を確立するためには、前記第1関数を用いた処理を行い、前記電子機器デバイスとの通信を終息するためには、前記第2関数を用いた処理を行い、前記電子機器デバイスの処理対象とのデータの送受信を行うためには、前記第3関数を用いた処理を行い、前記電子機器デバイスの情報を取得するためには、前記第4関数を用いた処理を行い、前記電子機器デバイス特有の機能に関するコマンド/レスポンスの各データを送受信するためには、前記第5関数を用いた処理を行う


A third aspect of the present invention is a communication function providing method for providing a communication function for transmitting / receiving information to / from an electronic device , wherein the electronic device is a card reader / writer,
A communication control software unit that provides a communication function with the electronic device and the electronic device related to a standard interface specification that does not depend on the specification of the similar electronic device in a predetermined operating system (OS) environment The standard interface specification conversion unit provides a basic communication function corresponding to the standard interface specification with the resource manager for managing the resources of the device, and the standard interface specification device driver unit supports the standard interface specification. provides an interface for controlling the device, through the communication function and the interface is provided, the operation of the electronic equipment device controlled by the application program unit, by the communication control software unit, the resource Providing a communication function with the electronic device through a manager, the standard interface specification conversion unit is provided as a part of the communication control software unit, and the standard interface specification conversion unit includes at least a first function; The first function is used to form a conversion function group corresponding to the standard interface specifications including the second function, the third function, the fourth function, and the fifth function, and to establish communication with the electronic device. In order to terminate the communication with the electronic device, the second function is used to transmit / receive data to / from the processing target of the electronic device. In order to perform processing using three functions and acquire information on the electronic device, perform processing using the fourth function, and function specific to the electronic device To transmit and receive the data of the command / response related performs processing using the fifth function.


本発明によれば、特別な知識を必要とすることなく、しかも通信制御ソフトウェアの修正に多大な工数をかけずに、既存のアプリケーションとの互換性を保つことが可能となる。   According to the present invention, compatibility with an existing application can be maintained without requiring special knowledge and without taking a great deal of man-hours for correcting communication control software.

本発明の実施形態に係る通信システムの概要を示すブロック図である。It is a block diagram which shows the outline | summary of the communication system which concerns on embodiment of this invention. 本実施形態に係る上位装置のハードウェアの基本的な構成例を概念的に示す図である。It is a figure which shows notionally the basic structural example of the hardware of the high-order apparatus which concerns on this embodiment. 電子機器デバイスとしてのカードリーダライタの信号処理系の基本的な構成例を示す図である。It is a figure which shows the basic structural example of the signal processing system of the card reader / writer as an electronic device device. 本実施形態に係る上位装置において、ソフトウェアシステムによって形成される通信機能提供装置の基本的構成の一例を示すブロック図である。It is a block diagram which shows an example of the fundamental structure of the communication function provision apparatus formed with a software system in the high-order apparatus which concerns on this embodiment. 本実施形態に係るPC/SC変換部を形成する変換関数群を、処理、機能を含めて示す図である。It is a figure which shows the conversion function group which forms the PC / SC conversion part which concerns on this embodiment including a process and a function. 本実施形態に係るPC/SC変換部におけるメイン関数を用いた処理の一例を説明するためのフローチャートである。It is a flowchart for demonstrating an example of the process using the main function in the PC / SC conversion part which concerns on this embodiment. 本実施形態に係る通信システムの通信機能提供装置と、本装置を適用していない既存の通信システとにおいて、カードリーダライタをPC/SC対応カードリーダライタに交換する場合の処理ついて比較して説明するための図である。A description will be given comparing the processing when the card reader / writer is replaced with a PC / SC compatible card reader / writer in the communication function providing apparatus of the communication system according to the present embodiment and an existing communication system to which the apparatus is not applied. It is a figure for doing. 本実施形態に係る上位装置における通信機能提供装置の第1の変更例について説明するための図である。It is a figure for demonstrating the 1st modification of the communication function provision apparatus in the high-order apparatus which concerns on this embodiment. 本実施形態に係る上位装置における通信機能提供装置の第2の変更例について説明するための図である。It is a figure for demonstrating the 2nd modification of the communication function provision apparatus in the high-order apparatus which concerns on this embodiment.

以下、本発明の実施形態を図面に関連付けて説明する。
以下の実施形態においては、電子機器デバイスとしてのカードリーダライタを例に説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
In the following embodiments, a card reader / writer as an electronic device device will be described as an example.

図1は、本発明の実施形態に係る通信システムの概要を示すブロック図である。
図2は、本実施形態に係る上位装置のハードウェアの基本的な構成例を概念的に示す図である。
図3は、電子機器デバイスとしてのカードリーダライタの信号処理系の基本的な構成例を示す図である。
図4は、本実施形態に係る上位装置において、ソフトウェアシステムによって形成される通信機能提供装置の基本的構成の一例を示すブロック図である。
FIG. 1 is a block diagram showing an outline of a communication system according to an embodiment of the present invention.
FIG. 2 is a diagram conceptually illustrating a basic configuration example of hardware of the host device according to the present embodiment.
FIG. 3 is a diagram illustrating a basic configuration example of a signal processing system of a card reader / writer as an electronic device device.
FIG. 4 is a block diagram illustrating an example of a basic configuration of a communication function providing device formed by a software system in the host device according to the present embodiment.

通信システム10は、通信機能提供装置としての機能を有する上位装置(ホストコンピュータ)20、電子機器デバイスとしてのカードリーダライタ30、およびICカード等の情報カード(以下、単にカードという場合もある)40を含んで構成されている。本実施形態においては、電子機器デバイスとして、ICカード等のカード40の読み取りまたは書き込み機能を有するカードリーダライタ30を例に説明する。本通信システム10の概要を説明した後、各部の具体的な構成および機能について説明する。   The communication system 10 includes a host device (host computer) 20 having a function as a communication function providing device, a card reader / writer 30 as an electronic device, and an information card such as an IC card (hereinafter sometimes simply referred to as a card) 40. It is comprised including. In the present embodiment, a card reader / writer 30 having a function of reading or writing a card 40 such as an IC card will be described as an example of an electronic device device. After describing the outline of the communication system 10, the specific configuration and function of each unit will be described.

[通信システム10の概要]
金融機関などで使用され、キャッシュレスや個人認証などを実現するカードとして、たとえばプラスチック基板にストライプ状に磁気データが記録された磁気カード、プラスチック基板内部に集積回路チップ(ICチップ)が埋め込まれ、表面にIC端子が配置されたICカード(接触式ICカード)や内部にアンテナコイルが配置されたICカード(非接触式ICカード)がある。そして、このカード(たとえばICカード)40に対する情報の読み取りまたは書き込みは、カードリーダライタ30によって行われる。
[Outline of Communication System 10]
As a card used in financial institutions and the like for realizing cashless and personal authentication, for example, a magnetic card in which magnetic data is recorded in a stripe shape on a plastic substrate, an integrated circuit chip (IC chip) is embedded inside the plastic substrate, There is an IC card (contact IC card) in which an IC terminal is arranged on the surface and an IC card (non-contact IC card) in which an antenna coil is arranged inside. The card reader / writer 30 reads or writes information on the card (for example, IC card) 40.

基本的に、カードリーダライタ30は、上位装置20からのコマンド(たとえばコマンドAPDU:Application Protocol Data Unit)を受信し、カード40との通信プロトコルに沿った形式(たとえばコマンドTPDU:Transmission Protocol Data Unit)に変換する。そして、カードリーダライタ30は、電圧や通信速度等も変換した後に、そのコマンドをカード40へ送信する。また、カードリーダライタ30は、カード40からの応答を受信した後、逆変換(レスポンスTPDUからレスポンスAPDUへ)を行って、その応答を上位装置20へ送信する。   Basically, the card reader / writer 30 receives a command (for example, command APDU: Application Protocol Data Unit) from the higher-level device 20, and a format according to a communication protocol with the card 40 (for example, command TPDU: Transmission Protocol Data Unit). Convert to The card reader / writer 30 transmits the command to the card 40 after converting the voltage, communication speed, and the like. In addition, after receiving the response from the card 40, the card reader / writer 30 performs reverse conversion (from response TPDU to response APDU) and transmits the response to the host device 20.

上位装置20とカードリーダライタ30との間の通常の通信は、RS−232CやUSB(Universal Serial Bus)などの専用線(有線の通信線)を用いた通信方式が適用されている。したがって、上位装置20とカードリーダライタ30とは、通常の通信経路としてUSBケーブル等の通信ケーブル50,60により接続されている。カードリーダライタ30とカード40との間の通信は、TTLレベル、USB、および非接触通信等が一般的である。また、一般に、カードリーダライタ30は、APDUのデータ内容を解釈することなく、単にTPDUに変換する処理を行う。   For normal communication between the host device 20 and the card reader / writer 30, a communication method using a dedicated line (wired communication line) such as RS-232C or USB (Universal Serial Bus) is applied. Therefore, the host device 20 and the card reader / writer 30 are connected by communication cables 50 and 60 such as a USB cable as a normal communication path. Communication between the card reader / writer 30 and the card 40 is generally TTL level, USB, non-contact communication, or the like. Further, generally, the card reader / writer 30 simply performs a process of converting into TPDU without interpreting the data content of the APDU.

本実施形態においては、このようなカードリーダライタ30と通信を行う上位装置20には、カードリーダライタ30との接続機器に応じた通信を制御するための通信機能提供装置を実現する通信制御用ソフトウェアシステムが適用されている。   In the present embodiment, the host device 20 that communicates with the card reader / writer 30 has a communication function providing device for controlling a communication function according to a device connected to the card reader / writer 30. A software system is applied.

本実施形態において、カードリーダライタ30を使用する通信システム10は、使用しているカードリーダライタをたとえばPC/SC対応のカードリーダライタに交換する場合、カードリーダライタと上位装置(ホストコンピュータ)20との基本通信機能を提供するようなソフトウェア(ドライバ、ライブラリなど)に、PC/SC変換部(関数、クラス、モジュール等)を用いることで、PC/SC仕様に関する知識が乏しくとも(なくとも)、比較的容易に通信部分を修正できるように構成されている。これにより、本実施形態の通信システム10においては、既存アプリケーションとの互換性も保たれる。つまり、PC/SC未対応のカードリーダライタに対して使用していた既存のアプリケーションであってもそのまま使用することができる。このため、既存アプリケーションにほとんど手を加えることなく、また、PC/SC仕様を既存アプリケーションで意識することなく、PC/SC対応のカードリーダライタを処理することができる。さらに、PC/SC対応のカードリーダライタであれば、他のどんなPC/SC対応のカードリーダライタであっても、既存システムで使用できることにもなる。このような通信機能提供装置の機能は、上位装置20にソフトウェアシステムとして実現されている。   In this embodiment, the communication system 10 using the card reader / writer 30 replaces the card reader / writer in use with, for example, a PC / SC compatible card reader / writer and the card reader / writer and the host device (host computer) 20. By using PC / SC converters (functions, classes, modules, etc.) for software (drivers, libraries, etc.) that provide basic communication functions with PCs, even if knowledge about PC / SC specifications is poor (at least) The communication portion can be corrected relatively easily. Thereby, in the communication system 10 of this embodiment, compatibility with the existing application is also maintained. That is, even an existing application used for a card reader / writer not compatible with PC / SC can be used as it is. Therefore, it is possible to process a PC / SC compatible card reader / writer with little modification to the existing application and without being aware of the PC / SC specification in the existing application. Furthermore, any other PC / SC compatible card reader / writer can be used in the existing system as long as it is a PC / SC compatible card reader / writer. Such a function of the communication function providing device is realized in the host device 20 as a software system.

なお、本実施形態において、PC/SC仕様とは、所定のOS(オペレーティングシステム)環境において電子機器デバイス(ここでは,カードリーダライタ)に依存しない標準API(アプリケーションインタフェース仕様)の一形態である。本実施形態では、PC/SC対応の通信機能提供装置について説明する。この上位装置20における通信機能提供装置の具体的な構成および機能については、後で詳述する。   In the present embodiment, the PC / SC specification is a form of a standard API (application interface specification) that does not depend on an electronic device (here, a card reader / writer) in a predetermined OS (operating system) environment. In this embodiment, a PC / SC compatible communication function providing apparatus will be described. The specific configuration and function of the communication function providing device in the host device 20 will be described in detail later.

ここでに、上記構成を有する通信システム10の上位装置(ホストコンピュータ)20、並びにカードリーダライタ(電子機器デバイス)30のハードウェアの具体的な構成および機能について説明し、その後、上位装置20における通信機能提供装置の具体的な構成および機能について説明する。   Here, specific configurations and functions of the hardware of the host device (host computer) 20 and the card reader / writer (electronic device) 30 of the communication system 10 having the above configuration will be described. A specific configuration and function of the communication function providing apparatus will be described.

[上位装置(ホストコンピュータ)20のハードウェアの具体的な構成および機能]
本実施形態に係る上位装置20の具体的な構成および機能について説明する。
上位装置20は、上述したように、基本的に、カードリーダライタ30との間で、主通信部であるUSB通信部27あるいはRS−232C通信部28を通して通信制御を行い、コマンドの送信に対応したレスポンス(応答)を受信する等の各種情報の授受を行って、カードリーダライタ30からの情報を取得する。
[Specific Hardware Configuration and Function of Host Device (Host Computer) 20]
A specific configuration and function of the host device 20 according to the present embodiment will be described.
As described above, the host device 20 basically performs communication control with the card reader / writer 30 through the USB communication unit 27 or the RS-232C communication unit 28, which is the main communication unit, and supports command transmission. The information from the card reader / writer 30 is acquired by exchanging various kinds of information such as receiving a response (response).

図2は、本実施形態に係る上位装置の構成例を概念的に示している。
図2の上位装置20は、基本的に、処理装置であるCPU21、ROM22、RAM23、ストレージユニット24、所定の情報が表示される表示装置25、およびキーボード261やマウス262を含む操作部26を有している。さらに、上位装置20は、主通信部としてのホスト側USB通信部27、およびホスト側RS−232C通信部28を有する。ホスト側USB通信部27は、通信ケーブル(USBケーブル)50を介してカードリーダライタ30のホスト側処理系のUSB通信部と接続される。ホスト側RS−232C通信部28は、通信ケーブル(RS−232Cケーブル)60を介してカードリーダライタ30のRS−232C通信部と接続される。
FIG. 2 conceptually shows a configuration example of the host device according to the present embodiment.
The host device 20 in FIG. 2 basically includes a CPU 21, a ROM 22, a RAM 23, a storage unit 24, a display device 25 on which predetermined information is displayed, and an operation unit 26 including a keyboard 261 and a mouse 262. doing. Furthermore, the host device 20 includes a host-side USB communication unit 27 and a host-side RS-232C communication unit 28 as main communication units. The host-side USB communication unit 27 is connected to the host-side processing system USB communication unit of the card reader / writer 30 via a communication cable (USB cable) 50. The host-side RS-232C communication unit 28 is connected to the RS-232C communication unit of the card reader / writer 30 via a communication cable (RS-232C cable) 60.

本例においては、図中のストレージユニット24内に保存されたオペレーティングシステム(OS)、ミドルウェアMW、アプリケーション等のプログラムがソフトウェアシステムの一部をなし、実行時にいわゆるコンピュータ(電子計算機)のソフトウェアとしてRAM23上に展開される。   In this example, programs such as an operating system (OS), middleware MW, and applications stored in the storage unit 24 in the figure form part of the software system, and the RAM 23 serves as so-called computer (electronic computer) software during execution. Expanded on top.

このような構成を有する上位装置20においては、状況に応じた処理を実行するアプリケーションプログラムおよびカードリーダライタ30との通信制御用の複数のミドルウェアを含むソフトウェアシステムを有している。本実施形態においては、この通信制御用ソフトウェアシステムにより、電子機器デバイスであるカードリーダライタ30との接続機器に応じた通信を制御するための、後で詳述する通信機能提供装置200を実現している。   The host device 20 having such a configuration has a software system including an application program for executing processing according to the situation and a plurality of middleware for communication control with the card reader / writer 30. In the present embodiment, this communication control software system realizes a communication function providing apparatus 200, which will be described in detail later, for controlling communication according to the connected device with the card reader / writer 30 that is an electronic device device. ing.

上述したように、上位装置20において、CPU21が全体の制御を行う。上位装置20は、カードリーダライタ30との通常の通信を行う場合に、CPU21の制御の下、ホスト側USB通信部27あるいはホスト側RS−232C通信部28を通して、通信ケーブル50または60により接続されたカードリーダライタ30の通信部との間でUSBやRS−232Cの通信規格に準拠した通信を行う。   As described above, in the host device 20, the CPU 21 performs overall control. When performing normal communication with the card reader / writer 30, the host device 20 is connected by the communication cable 50 or 60 through the host-side USB communication unit 27 or the host-side RS-232C communication unit 28 under the control of the CPU 21. Communication with the communication unit of the card reader / writer 30 conforming to the USB or RS-232C communication standard is performed.

以上、上位装置20のハードウェアの具体的な構成および機能について説明した。
次に、カードリーダライタ30の構成および機能について説明する。
The specific configuration and functions of the hardware of the higher-level device 20 have been described above.
Next, the configuration and function of the card reader / writer 30 will be described.

[カードリーダライタ30の構成および機能]
カードリーダライタ30は、上位装置20との通信およびカード40との通信機能を有する。カードリーダライタ30は、上位装置20とのメイン(通常)の通信はUSBやRS−232C等の通信規格に準拠して行う。
[Configuration and Function of Card Reader / Writer 30]
The card reader / writer 30 has a communication function with the host device 20 and a communication function with the card 40. The card reader / writer 30 performs main (normal) communication with the host device 20 in accordance with a communication standard such as USB or RS-232C.

前述したように、図3は、本実施形態に係る電子機器デバイスとしてのカードリーダライタの信号処理系の構成例を示している。図3において、上位装置の構成は要部のみ示されている。   As described above, FIG. 3 shows a configuration example of the signal processing system of the card reader / writer as the electronic device according to the present embodiment. In FIG. 3, only the main part of the configuration of the host device is shown.

カードリーダライタ30は、図3に示すように、カードリーダライタ30全体を統合的に制御するCPU311、カードリーダライタ30の動作プログラムや初期値、パラメータなどを格納するROM312、およびCPU311のワーキングエリアとして機能するRAM313を有している。カードリーダライタ30は、上位装置20とUSBやRS−232C等の通信規格に準拠した通信を行うI/F(インタフェース)である通信部314、およびカードI/F315を有している。   As shown in FIG. 3, the card reader / writer 30 includes a CPU 311 that controls the card reader / writer 30 as a whole, a ROM 312 that stores operation programs, initial values, parameters, and the like of the card reader / writer 30, and a working area for the CPU 311. A functioning RAM 313 is included. The card reader / writer 30 includes a communication unit 314 that is an I / F (interface) that performs communication with the host device 20 in accordance with a communication standard such as USB or RS-232C, and a card I / F 315.

カードリーダライタ30は、通信部314さらには通信ケーブル50あるいは60を介して上位装置20と接続され、カードI/F315を介してカード40と(有線または無線で)通信可能に構成されている。カードリーダライタ30は、上位装置20との間の通信規約に沿った情報列のコマンドに基づき動作し、カード40との間の通信規約に沿った情報列の送受信を行う機能を有する。   The card reader / writer 30 is connected to the host device 20 via the communication unit 314 and the communication cable 50 or 60, and is configured to be able to communicate with the card 40 (wired or wirelessly) via the card I / F 315. The card reader / writer 30 operates based on an information sequence command in accordance with a communication protocol with the host device 20 and has a function of transmitting and receiving an information sequence with the card 40 in accordance with the communication protocol.

通信部314は、上位装置20からカードリーダライタ30へ送られた信号を所定レベルの信号に変換し、それをCPU311に転送する機能を有する。また、CPU311からの信号を逆変換して、上位装置20に転送する。   The communication unit 314 has a function of converting a signal sent from the host device 20 to the card reader / writer 30 into a signal of a predetermined level and transferring it to the CPU 311. In addition, the signal from the CPU 311 is inversely converted and transferred to the host device 20.

CPU311は、上位装置20との間の通信規約に沿った情報列(たとえばコマンドAPDU)内のコマンドに基づいて動作する。そして、CPU311は、そのコマンドAPDUを、カード40との間の通信規約に沿った情報列に変換し、これをカード40に送信する。すなわち、CPU311は、上位装置20からのコマンド(コマンドAPDU)を、カード40との通信プロトコルに沿った形式(コマンドTPDU)に変換する。変換されたコマンドTPDUは、カードI/F315を通じてカード40に送信される。   The CPU 311 operates based on a command in an information string (for example, command APDU) in accordance with a communication protocol with the host device 20. Then, the CPU 311 converts the command APDU into an information string that conforms to the communication protocol with the card 40, and transmits it to the card 40. In other words, the CPU 311 converts the command (command APDU) from the host device 20 into a format (command TPDU) according to the communication protocol with the card 40. The converted command TPDU is transmitted to the card 40 through the card I / F 315.

一方で、カード40からのレスポンス受信時には、CPU311はレスポンスTPDUをレスポンスAPDUに変換する。変換されたレスポンスAPDUは、通信部314を通じて上位装置20に転送される。   On the other hand, when receiving a response from the card 40, the CPU 311 converts the response TPDU into a response APDU. The converted response APDU is transferred to the host device 20 through the communication unit 314.

カードI/F315は、コマンドTPDUを、カード40に応じた電圧や通信速度に変換し、カード40に送信する。また、カードI/F315は、カード40から受信した信号を所定レベルの信号に変換し、それをCPU311に伝える機能を有する。   The card I / F 315 converts the command TPDU into a voltage or communication speed corresponding to the card 40 and transmits it to the card 40. The card I / F 315 has a function of converting a signal received from the card 40 into a signal of a predetermined level and transmitting the signal to the CPU 311.

ROM312は、プログラム等の不揮発性データを保存する。RAM313は、CPU311のワーキングエリアとして機能し、一時的にデータを保存する。   The ROM 312 stores non-volatile data such as programs. The RAM 313 functions as a working area for the CPU 311 and temporarily stores data.

以上、上位装置20およびカードリーダライタ30のハードウェアの具体的な構成および機能について説明した。次に、使用しているカードリーダライタをPC/SC対応のカードリーダライタに交換する場合に、カードリーダライタ30と上位装置20との基本通信機能を提供することが可能な、上位装置20におけるカードリーダライタとの接続機器に応じた通信を制御するための通信制御用ソフトウェアシステムにより形成される通信機能提供装置200の構成および機能について説明する。   The specific hardware configuration and functions of the host device 20 and the card reader / writer 30 have been described above. Next, when the card reader / writer being used is replaced with a PC / SC compatible card reader / writer, the basic communication function between the card reader / writer 30 and the host device 20 can be provided. The configuration and function of the communication function providing apparatus 200 formed by the communication control software system for controlling communication according to the device connected to the card reader / writer will be described.

[上位装置20の通信機能提供装置200の構成および機能]
前述したように、図4は、本実施形態に係る上位装置20において、ソフトウェアシステムによって形成される通信機能提供装置200の一例を示している。図4は、上位装置20にPC/SC対応のカードリーダライタ(A)30Aが接続される例を示している。
[Configuration and Function of Communication Function Providing Device 200 of Upper Device 20]
As described above, FIG. 4 shows an example of the communication function providing apparatus 200 formed by the software system in the host apparatus 20 according to the present embodiment. FIG. 4 shows an example in which a card reader / writer (A) 30A compatible with PC / SC is connected to the host device 20.

本通信機能提供装置200は、アプリケーションプログラム(AP)部210、通信制御ソフトウェア部220、OS標準搭載PC/SC制御用サービスであるリソースマネージャ230、PC/SC対応カードリーダライタ用PC/SCデバイスドライバ部240、OS標準搭載デバイスドライバ部250、およびPC/SC変換部260を含んで構成されている。   The communication function providing apparatus 200 includes an application program (AP) unit 210, a communication control software unit 220, a resource manager 230 that is a standard OS-installed PC / SC control service, and a PC / SC device driver for a PC / SC compatible card reader / writer. Unit 240, OS standard device driver unit 250, and PC / SC conversion unit 260.

なお、PC/SCでは、PC/SC対応(たとえばUSB)カードリーダライタ(A)30Aのベンダーが、「OS標準搭載(USB関連)デバイスドライバ部250」を通して使用する「PC/SC対応(USB)カードリーダライタA用PC/SCデバイスドライバ部240」を提供し、「OS標準搭載PC/SC制御用サービス(リソースマネージャ)230」を使用することが前提である。   In PC / SC, a PC / SC compatible (for example, USB) card reader / writer (A) 30A vendor uses “OS / standard (USB related) device driver unit 250” to use “PC / SC compatible (USB)”. It is assumed that the “PC / SC device driver unit 240 for card reader / writer A” is provided and the “OS standard installed PC / SC control service (resource manager) 230” is used.

AP部210は、通信制御ソフトウェア部220の通信制御ソフトウェアを呼び出し、上位装置20に接続されて電子機器デバイスであるカードリーダライタ30Aの動作(操作)を、アプリケーションプログラムAに基づいて制御する。   The AP unit 210 calls the communication control software of the communication control software unit 220, and controls the operation (operation) of the card reader / writer 30A, which is connected to the host device 20 and is an electronic device device, based on the application program A.

通信制御ソフトウェア部220は、カードリーダライタ30Aとの間で通信機能を提供する。より具体的には、通信制御ソフトウェア部220は、OS標準搭載PC/SC制御用サービスであるリソースマネージャ230を通して、PC/SC対応カードリーダライタ30Aと上位装置(ホスト装置)20との通信を制御するような機能を提供する。   The communication control software unit 220 provides a communication function with the card reader / writer 30A. More specifically, the communication control software unit 220 controls communication between the PC / SC compatible card reader / writer 30A and the host device (host device) 20 through the resource manager 230, which is a standard OS-installed PC / SC control service. Provide such functions.

リソースマネージャ230は、本実施形態において標準インタフェース仕様に相当するPC/SC仕様に応じてPC/SC対応カードリーダライタ(A)30A関連のリソース、本例ではPC/SC対応カードリーダライタ用PC/SCデバイスドライバ部240等を一括に管理する。リソースマネージャ230は、PC/SC変換部260の指示によりオープンまたはクローズされ、オープン時にはデータの送受信、カード40のステータス情報の取得や、カードリーダライタ特有の機能に関するデータの取得等を行う。   The resource manager 230 is a resource related to the PC / SC compatible card reader / writer (A) 30A according to the PC / SC specification corresponding to the standard interface specification in this embodiment, in this example, the PC / SC compatible card reader / writer PC / SC. The SC device driver unit 240 and the like are collectively managed. The resource manager 230 is opened or closed in accordance with an instruction from the PC / SC conversion unit 260. When the resource manager 230 is opened, data transmission / reception, acquisition of status information of the card 40, acquisition of data related to functions unique to the card reader / writer, and the like are performed.

PC/SC対応カードリーダライタ用PC/SCデバイスドライバ部240は、PC/SC対応カードリーダライタ(A)30Aが接続される各通信部(27,28)を制御するOS標準搭載デバイスドライバ部250を通し、アプリケーションソフトウェアに対して抽象化・共通化したインタフェースを提供する。   The PC / SC device driver unit 240 for PC / SC card reader / writer is a standard OS-equipped device driver unit 250 that controls the communication units (27, 28) to which the PC / SC card reader / writer (A) 30A is connected. Provides an abstracted and shared interface for application software.

OS標準搭載デバイスドライバ部250は、カードリーダライタ30,30Aが接続される各通信部(27,28)に応じた制御をする。   The OS standard device driver unit 250 performs control according to each communication unit (27, 28) to which the card reader / writer 30, 30A is connected.

PC/SC変換部260は、関数、クラス、あるいはモジュール等により形成され、通信制御ソフトウェア部220とリソースマネージャ230との間でPC/SC仕様対応(標準インタフェース仕様対応)の基本通信機能を提供する。本実施形態において、あるアプリケーションプログラムで、カードリーダライタを制御(操作)しているシステムにおいて、カードリーダライタをPC/SC対応のカードリーダライタ(A)30Aに交換する場合、PC/SC変換部という変換部を、関数なり、クラスなり、モジュールなりの形で持つことにより、AP部210のアプリケーションプログラムを変更せずに既存の資産を使用できる、という特徴を有している。   The PC / SC conversion unit 260 is formed of a function, class, module, or the like, and provides a basic communication function compatible with the PC / SC specification (standard interface specification) between the communication control software unit 220 and the resource manager 230. . In this embodiment, in a system in which a card reader / writer is controlled (operated) by a certain application program, when the card reader / writer is replaced with a PC / SC compatible card reader / writer (A) 30A, a PC / SC conversion unit By having such a conversion unit in the form of a function, a class, or a module, the existing asset can be used without changing the application program of the AP unit 210.

通信機能提供装置200において、通信制御ソフトウェア部220は、リソースマネージャ230を通して、電子機器デバイスであるPC/SC対応カードリーダライタ30Aとの間で通信機能を提供する。本実施形態においては、PC/SC変換部260は、通信制御ソフトウェア部220の一部として設けられている。これにより、通信制御ソフトウェア部220とリソースマネージャ230間において変換機能を容易にかつ的確に実現することが可能であることはもとより、通信制御ソフトウェア部の通信制御ソフトウェアの修正を極力減らすことができる。換言すれば、PC/SC変換部260を作成したことで、通信制御ソフトウェア部220は、その基本的な機能は今までと同じであり、PC/SC変換部260とのデータのやり取りなどで修正する程度である。   In the communication function providing apparatus 200, the communication control software unit 220 provides a communication function with the PC / SC compatible card reader / writer 30A, which is an electronic device device, through the resource manager 230. In the present embodiment, the PC / SC conversion unit 260 is provided as a part of the communication control software unit 220. Thereby, the conversion function between the communication control software unit 220 and the resource manager 230 can be easily and accurately realized, and the correction of the communication control software in the communication control software unit can be reduced as much as possible. In other words, by creating the PC / SC conversion unit 260, the communication control software unit 220 has the same basic function as before, and is corrected by exchanging data with the PC / SC conversion unit 260. It is a grade to do.

本実施形態のPC/SC変換部260は、一例として関数の形で変換部が形成されており、カードリーダライタをPC/SC対応のカードリーダライタ30Aに交換する場合、アプリケーションプログラムを変更せずに既存の資産を使用できる。   The PC / SC conversion unit 260 according to the present embodiment has a conversion unit formed in the form of a function as an example. When the card reader / writer is replaced with a PC / SC compatible card reader / writer 30A, the application program is not changed. Can use existing assets.

本実施形態のPC/SC変換部260は、PC/SC対応の変換関数群を備えている。図5は、本実施形態に係るPC/SC変換部を形成する変換関数群を、処理、機能を含めて示す図である。   The PC / SC converter 260 of this embodiment includes a PC / SC compatible conversion function group. FIG. 5 is a diagram illustrating a conversion function group forming the PC / SC conversion unit according to the present embodiment, including processing and functions.

PC/SC変換部の関数群は、大きく分けて、「メイン関数」と「オプション関数」が存在する。メイン関数には、第1関数「ConvOpen」、第2関数「ConvClose」、第3関数「ConvCardCommunication」、第4関数「ConvCardStatus」、および第5関数「ConvExecuteCommand」が存在する。   The function group of the PC / SC converter is roughly divided into a “main function” and an “option function”. The main function includes a first function “ConvOpen”, a second function “ConvClose”, a third function “ConvCardCommunication”, a fourth function “ConvCardStatus”, and a fifth function “ConvExeCommand”.

オプション関数には、第6関数「ConvEntry」、第7関数「ConvEject」、および第8関数「ConvActivate」が存在する。   The option function includes a sixth function “ConvEntry”, a seventh function “ConvEject”, and an eighth function “ConvActivate”.

メイン関数の第1関数「ConvOpen」は、カードリーダライタ30Aとの通信を確立するための関数であり、リソースマネージャ230をオープンする。   The first function “ConvOpen” of the main function is a function for establishing communication with the card reader / writer 30A, and opens the resource manager 230.

メイン関数の第2関数「ConvClose」は、カードリーダライタ30Aとの通信を終息するための関であり、リソースマネージャ230をクローズする。 The second function of the main function "ConvClose" is the function number for termination of the communication with the card reader-writer 30A, closes the resource manager 230.

メイン関数の第3関数「ConvCardCommunication」は、カードリーダライタ30A内にあるカード40とのデータの送受信を行うための関数であり、カードリーダライタ30A内にあるカード40へ送信するデータをリソースマネージャ230へ送り、そのカード40から受信したデータをリソースマネージャ230から取得する。   The third function “ConvCardCommunication” of the main function is a function for transmitting / receiving data to / from the card 40 in the card reader / writer 30A, and the data to be transmitted to the card 40 in the card reader / writer 30A is the resource manager 230. The data received from the card 40 is acquired from the resource manager 230.

メイン関数の第4関数「ConvCardStatus」は、カード位置等のカードリーダライタ30A関連の情報を取得するための関数であり、現在カードがどこにあるのか、カードは活性化状態か、等の情報をリソースマネージャ230から取得する。   The fourth function “ConvCardStatus” of the main function is a function for acquiring information related to the card reader / writer 30A such as the card position, and resources such as where the card is currently located and whether the card is activated are resources. Obtain from the manager 230.

メイン関数の第5関数「ConvExecuteCommand」は、カードリーダライタ30A特有の機能に関するコマンド/レスポンスの各データの送受信を行うための関数であり、カードリーダライタ30Aへ送信するコマンドデータ(カードリーダライタで定められているデータフォーマット)をリソースマネージャ230へ送り、カードリーダライタから受信したレスポンスデータをリソースマネージャ230から取得する。   The fifth function “ConvExecuteCommand” of the main function is a function for transmitting / receiving command / response data related to functions unique to the card reader / writer 30A, and is command data (determined by the card reader / writer) to be transmitted to the card reader / writer 30A. Data format) is sent to the resource manager 230, and the response data received from the card reader / writer is acquired from the resource manager 230.

オプション関数の第6関数「ConvEntry」は、カード取り込みを行うための関数であり、カード取り込みの命令をリソースマネージャ230に対して行う。   The sixth function “ConvEntry” of the option function is a function for taking in a card, and issues a card take-in command to the resource manager 230.

オプション関数の第7関数「ConvEject」は、カード排出を行うための関数であり、カード排出の命令をリソースマネージャ230に対して行う。   A seventh function “ConvEject” of the option function is a function for discharging a card, and issues a card discharge command to the resource manager 230.

オプション関数の第8関数「ConvActivate」は、ICカード活性化・非活性化を行うための関数であり、活性化が指定されれば活性化、非活性化が指定されれば非活性化の命令をリソースマネージャ230に対して行う。   The eighth function “ConvActivate” of the option function is a function for activating / deactivating the IC card. If activation is designated, activation is made, and if deactivation is designated, a deactivation instruction is given. To the resource manager 230.

PC/SC変換部260は、通常の処理においてはメイン関数を用いた処理を行う。ここで、メイン関数を用いた処理の一例を図6に関連付けて説明する。図6は、本実施形態に係るPC/SC変換部におけるメイン関数を用いた処理の一例を説明するためのフローチャートである。   The PC / SC converter 260 performs processing using the main function in normal processing. Here, an example of processing using the main function will be described with reference to FIG. FIG. 6 is a flowchart for explaining an example of processing using the main function in the PC / SC converter according to the present embodiment.

たとえば、通信制御ソフトウェア部220とリソースマネージャ230との間でPC/SC仕様対応(標準インタフェース仕様対応)の基本通信機能が提供される(ステップST1)。まず、第1関数「ConvOpen」により、通信を確立するために、リソースマネージャ230をオープンする(ステップST2)。次に、第4関数「ConvCardStatus」により、接続されているPC/SCカードリーダライタ30Aにおいて、現在カードがどこにあるのか、カードは活性化状態か、等の情報をリソースマネージャ230から取得する(ステップST3)。ここで、カードリーダライタ特有の機能に関するコマンド/レスポンスの各データの送受信が必要な場合(ステップST4)、カードリーダライタ30Aへ送信するコマンドデータをリソースマネージャ230へ送り、カードリーダライタから受信したレスポンスデータをリソースマネージャ230から取得する(ステップST5)。   For example, a basic communication function compatible with the PC / SC specification (standard interface specification) is provided between the communication control software unit 220 and the resource manager 230 (step ST1). First, the resource manager 230 is opened in order to establish communication using the first function “ConvOpen” (step ST2). Next, in the connected PC / SC card reader / writer 30A, information such as where the card is currently located and whether the card is activated is acquired from the resource manager 230 by the fourth function “ConvCardStatus” (step S40). ST3). Here, when it is necessary to transmit / receive each command / response data related to the function specific to the card reader / writer (step ST4), the command data to be transmitted to the card reader / writer 30A is sent to the resource manager 230, and the response received from the card reader / writer. Data is acquired from the resource manager 230 (step ST5).

ステップST3の処理が終了し、ステップST4において特有の機能に関するコマンド/レスポンスの各データの送受信が不要な場合、または、ステップST5の処理が終了した後は通常の通信処理を行う。すなわち、第3関数「ConvCardCommunication」により、カードリーダライタ30Aのカード40へ送信するデータをリソースマネージャ230へ送り、そのカード40から受信したデータをリソースマネージャ230から取得する(ステップST6)。このデータ送受信が終了すると、第2関数「ConvClose」により、リソースマネージャ230をクローズする(ステップST7)。   When the process of step ST3 is completed and the transmission / reception of each command / response data related to the specific function is unnecessary in step ST4, or after the process of step ST5 is completed, normal communication processing is performed. That is, the third function “ConvCardCommunication” sends the data to be transmitted to the card 40 of the card reader / writer 30A to the resource manager 230, and the data received from the card 40 is acquired from the resource manager 230 (step ST6). When the data transmission / reception ends, the resource manager 230 is closed by the second function “ConvClose” (step ST7).

このように、カードリーダライタを使用する通信システム10において、使用しているカードリーダライタをPC/SC対応のカードリーダライタ(A)30Aに交換する場合、カードリーダライタと上位装置20との基本通信機能を提供するようなソフトウェア(ドライバ、ライブラリなど)をPC/SC仕様することを可能するために、PC/SC変換部(関数、クラス、モジュール等)260を用いることで、PC/SC仕様に関する知識が乏しくとも(なくとも)、比較的容易に通信部分を修正できる。これにより、既存アプリケーションとの互換性も保たれる。つまり、PC/SC未対応のカードリーダライタに対して使用していた既存のアプリケーションであってもそのまま使用することができる。このため、既存アプリケーションおよび基本通信機能を提供するソフトウェアにほとんど手を加えることなく、また、PC/SC仕様を既存アプリケーションで意識することなく、PC/SC対応のカードリーダライタを制御することができる。さらに、PC/SC対応のカードリーダライタであれば、他のどんなPC/SC対応のカードリーダライタであっても、既存システムで使用できることにもなる。   As described above, in the communication system 10 using the card reader / writer, when the card reader / writer used is replaced with the PC / SC compatible card reader / writer (A) 30A, the basics of the card reader / writer and the host device 20 are exchanged. PC / SC specification by using a PC / SC converter (function, class, module, etc.) 260 in order to make it possible to make PC / SC specifications for software (drivers, libraries, etc.) that provide communication functions. Even if there is little (or no) knowledge about, the communication part can be modified relatively easily. This maintains compatibility with existing applications. That is, even an existing application used for a card reader / writer not compatible with PC / SC can be used as it is. Therefore, it is possible to control a PC / SC compatible card reader / writer with little modification to existing applications and software that provides basic communication functions, and without being aware of PC / SC specifications in existing applications. . Furthermore, any other PC / SC compatible card reader / writer can be used in the existing system as long as it is a PC / SC compatible card reader / writer.

以上のように、カードリーダライタを使用する通信システム10において、使用しているカードリーダライタをPC/SC対応のカードリーダライタ(A)30Aに交換する場合、カードリーダライタと上位装置20との基本通信機能を提供するようなソフトウェア(ドライバ、ライブラリなど)をPC/SC仕様することを可能するために、PC/SC変換部(関数、クラス、モジュール等)260を用いたことによる効果について、より具体的に考察する。   As described above, in the communication system 10 using a card reader / writer, when the card reader / writer used is replaced with a PC / SC compatible card reader / writer (A) 30A, the card reader / writer and the host device 20 are exchanged. Regarding the effects of using the PC / SC conversion unit (function, class, module, etc.) 260 in order to make it possible to make PC / SC specifications for software (drivers, libraries, etc.) that provide basic communication functions, Consider more specifically.

図7(A)および(B)は、本実施形態に係る通信システムの通信機能提供装置と、本通信機能提供装置を適用していない既存の通信システムとにおいて、カードリーダライタをPC/SC対応カードリーダライタに交換する場合の処理ついて比較して説明するための図である。図7(A)が本実施形態に係る通信システムの通信機能提供装置を、図7(B)が既存の通信システムを示している。   FIGS. 7A and 7B show a PC / SC compatible card reader / writer in a communication function providing device of a communication system according to the present embodiment and an existing communication system to which the communication function providing device is not applied. It is a figure for comparing and explaining processing in the case of exchange to a card reader / writer. FIG. 7A shows a communication function providing apparatus of a communication system according to this embodiment, and FIG. 7B shows an existing communication system.

既に述べたように、本実施形態の通信システム10は、あるアプリケーションプログラムで、カードリーダライタを制御(操作)しているシステムにおいて、カードリーダライタ30をPC/SC対応のカードリーダライタ(A)30Aに交換する場合、PC/SC変換部260を、関数なり、クラスなり、モジュールなりの形で持つことにより、アプリケーションプログラムおよび通信制御ソフトウェアを変更せずに既存の資産を使用できる、という特徴を有している。   As described above, the communication system 10 of the present embodiment is a system in which the card reader / writer is controlled (operated) by a certain application program, and the card reader / writer 30 is replaced with a PC / SC compatible card reader / writer (A). When exchanging with 30A, the PC / SC conversion unit 260 has functions, classes, and modules, so that existing assets can be used without changing application programs and communication control software. Have.

ここでは、図7(B)に示すように、例としてAP部210の「アプリケーションプログラムA」にて「USBカードリーダライタA」30を制御している既存システムがあるとする。このとき、AP部210(アプリケーションプログラムA)は、USBカードリーダライタ(A)30と上位装置20との通信を制御するような機能を提供する通信制御ソフトウェア部270の通信制御ソフトウェアを使用している。この通信制御ソフトウェアは、OS標準搭載USB関連デバイスドライバ部280を使用するためのUSB通信に関する面倒な手続きを担っており、AP部210のアプリケーションプログラムAでのUSBカードリーダライタ(A)30の制御を比較的容易にしている。   Here, as shown in FIG. 7B, it is assumed that there is an existing system in which “USB card reader / writer A” 30 is controlled by “application program A” of AP section 210 as an example. At this time, the AP unit 210 (application program A) uses the communication control software of the communication control software unit 270 that provides a function for controlling communication between the USB card reader / writer (A) 30 and the host device 20. Yes. This communication control software has a troublesome procedure related to USB communication for using the OS-related USB-related device driver unit 280, and controls the USB card reader / writer (A) 30 by the application program A of the AP unit 210. Makes it relatively easy.

ここで、コスト削減、システム仕様変更、標準化等の目的で、使用しているUSBカードリーダライタ(A)30を「PC/SC対応USBカードリーダライタ(A)30A」へと変更する必要が出てきたとする。このとき、通常は、通信制御ソフトウェアをPC/SC仕様に合うように作り変える必要が出てくる。これに伴い、AP部210のアプリケーションプログラムAも修正する必要が出てくる可能性がある。また、USBカードリーダライタからUSBカードリーダライタへの変更ならまだしも、USBカードリーダライタからRS−232Cカードリーダライタ、またはその逆等、インタフェースが異なるものへの変更があった場合は、確実にアプリケーションプログラムAも修正する必要がある。   Here, it is necessary to change the used USB card reader / writer (A) 30 to “PC / SC compatible USB card reader / writer (A) 30A” for the purpose of cost reduction, system specification change, standardization, etc. Let's say. At this time, it is usually necessary to reconfigure the communication control software to meet the PC / SC specification. Along with this, there is a possibility that the application program A of the AP unit 210 needs to be corrected. In addition, if the USB card reader / writer is changed to a USB card reader / writer, if the USB card reader / writer is changed to an RS-232C card reader / writer, or vice versa, the application is surely applied. Program A also needs to be modified.

PC/SCでは、PC/SC対応USBカードリーダライタ(A)30Aのベンダーが、「OS標準搭載USB関連デバイスドライバ部250」を通して使用する「PC/SC対応USBカードリーダライタA用PC/SCデバイスドライバ部240」を提供し、「OS標準搭載PC/SC制御用サービス(リソースマネージャ)230」を使用することが前提である。   In PC / SC, a PC / SC compatible USB card reader / writer (A) 30A vendor uses a “PC / SC compatible USB card reader / writer A PC / SC device for use with an OS-standard USB-related device driver unit 250”. It is assumed that the driver unit 240 "is provided and the" OS standard-installed PC / SC control service (resource manager) 230 "is used.

よって、図7(B)の通信システムでは、通信制御ソフトウェアのOS標準搭載USB関連デバイスドライバ部280のインタフェースとなっている部分を、「OS標準搭載PC/SC制御用サービス(リソースマネージャ)230」を使用するような形に変換できれば、USBカードリーダライタ(A)30)をPC/SC対応USBカードリーダライタ(A)30Aに変更しても、AP部210のアプリケーションプログラムAは既存のままで使用し続けることができる。
そこで、本実施形態では、図7(A)に示すように、通信制御ソフトウェア部220とリソースマネージャ230との間でPC/SC仕様対応(標準インタフェース仕様対応)の基本通信機能を提供するPC/SC変換部260を設けている。これにより、この例の場合は、通信制御ソフトウェアの修正を極力減らすことができる。換言すれば、PC/SC変換部260を作成したことで、通信制御ソフトウェア部220は、その基本的な機能は今までと同じであり、PC/SC変換部260とのデータのやり取りなどで修正する程度である。また、PC/SC対応カードリーダライタをインタフェースが違うものに変更しても、PC/SC変換部260を使用することで、インタフェースの違いを意識することなく、通信制御ソフトウェアの修正ができる。
Therefore, in the communication system of FIG. 7B, the portion of the communication control software that is the interface of the OS-standard-equipped USB-related device driver unit 280 is referred to as “OS-standard-equipped PC / SC control service (resource manager) 230”. If the USB card reader / writer (A) 30) is changed to the PC / SC compatible USB card reader / writer (A) 30A, the application program A of the AP unit 210 remains the same. Can continue to use.
Therefore, in the present embodiment, as shown in FIG. 7A, a PC / SC that provides a basic communication function compatible with the PC / SC specification (compatible with the standard interface specification) between the communication control software unit 220 and the resource manager 230. An SC conversion unit 260 is provided. Thereby, in the case of this example, correction of communication control software can be reduced as much as possible. In other words, by creating the PC / SC conversion unit 260, the communication control software unit 220 has the same basic function as before, and is corrected by exchanging data with the PC / SC conversion unit 260. It is a grade to do. Further, even if the PC / SC compatible card reader / writer is changed to one having a different interface, the communication control software can be corrected without being aware of the difference in the interface by using the PC / SC conversion unit 260.

本例において、USBカードリーダライタ(A)30をUSBインタフェースのPC/SC対応USBカードリーダライタ30Aに交換した場合、PC/SC変換部260を適用したことにより、次のようなごく小さな変更が伴うことで、制御していたAP部210のアプリケーションプログラムは変更せずに使用できる。この場合、通信制御ソフトウェア部220Aは、OS標準搭載PC/SC制御用サービスであるリソースマネージャ230を通して、PC/SC対応USBカードリーダライタ30Aと上位装置20との通信を制御するような機能を提供するように構成される。また、PC/SCデバイスドライバ部240Aは、PC/SC対応USBカードリーダライタ30A用PC/SCデバイスドライバ部として構成される。   In this example, when the USB card reader / writer (A) 30 is replaced with a USB interface PC / SC compatible USB card reader / writer 30A, the application of the PC / SC converter 260 makes the following small changes. Accordingly, the application program of the AP unit 210 that has been controlled can be used without being changed. In this case, the communication control software unit 220A provides a function for controlling communication between the PC / SC compatible USB card reader / writer 30A and the host device 20 through the resource manager 230, which is a standard OS-installed PC / SC control service. Configured to do. The PC / SC device driver unit 240A is configured as a PC / SC device driver unit for the PC / SC compatible USB card reader / writer 30A.

以上説明したように、本実施形態によれば、以下の効果を得ることができる。
既存システムにて、カードリーダライタを交換するような場合、コスト削減、システム仕様変更、標準化等の理由で、比較的安価なPC/SC対応のカードリーダライタを採用する場合、PC/SC変換部を使用することで、既存のカードリーダライタの制御ソフトウェアの修正に多大な工数をかけずに済み、かつ既存アプリケーションとの互換性を保つことができる。さらに、通信制御ソフトウェアの修正において、PC/SCの仕様に関する知識がなくてもよい。一旦、PC/SC変換部を使用した形に修正してしまえば、たとえカードリーダライタのインタフェースが異なっていても、PC/SCに対応したカードリーダライタへの交換であれば、アプリケーションなどの既存のソフトウェアとの互換性が保たれているため、そのまま継続使用できる。
As described above, according to the present embodiment, the following effects can be obtained.
When replacing a card reader / writer in an existing system, when using a relatively inexpensive PC / SC compatible card reader / writer for reasons such as cost reduction, system specification change, standardization, etc., a PC / SC converter By using the, it is possible to save the man-hours for modifying the control software of the existing card reader / writer and to maintain compatibility with existing applications. Furthermore, knowledge of the PC / SC specification may not be required in the modification of the communication control software. Once modified to use a PC / SC converter, even if the interface of the card reader / writer is different, if it is replaced with a card reader / writer compatible with PC / SC, existing applications such as Because it is compatible with other software, it can be used as it is.

使用しているカードリーダライタをPC/SC対応のカードリーダライタ30Aに交換する場合、カードリーダライタと上位装置20との基本通信機能を提供するような(通信制御)ソフトウェア(ドライバ、ライブラリなど)をPC/SC仕様することを可能するために、PC/SC変換部(関数、クラス、モジュール等)260を用いることで、PC/SC仕様に関する知識が乏しくとも(なくとも)、比較的容易に通信部分を修正できる。これにより、既存アプリケーションとの互換性も保たれる。つまり、PC/SC未対応のカードリーダライタに対して使用していた既存のアプリケーションであってもそのまま使用することができる。このため、既存アプリケーションにほとんど手を加えることなく、また、PC/SC仕様を既存アプリケーションで意識することなく、PC/SC対応のカードリーダライタを制御することができる。さらに、PC/SC対応のカードリーダライタであれば、他のPC/SC対応のカードリーダライタであっても、既存システムで使用できることにもなる。   Software (driver, library, etc.) that provides basic communication functions between the card reader / writer and the host device 20 when the card reader / writer used is replaced with a PC / SC compatible card reader / writer 30A. PC / SC converters (functions, classes, modules, etc.) 260 can be used to make the PC / SC specifications easier, even if the knowledge about PC / SC specifications is scarce (or at least). The communication part can be modified. This maintains compatibility with existing applications. That is, even an existing application used for a card reader / writer not compatible with PC / SC can be used as it is. For this reason, it is possible to control a PC / SC compatible card reader / writer with little modification to an existing application and without being aware of the PC / SC specification in the existing application. Furthermore, if it is a PC / SC compatible card reader / writer, other PC / SC compatible card reader / writers can be used in the existing system.

また、本実施形態では、あるアプリケーションプログラムで、カードリーダライタを制御(操作)しているシステムにおいて、カードリーダライタをPC/SC対応のものに交換する場合、PC/SC変換部を、関数なり、クラスなり、モジュールなりの形で持つことにより、アプリケーションプログラムを変更せずに既存の資産を使用できる。   In the present embodiment, in a system in which a card reader / writer is controlled (operated) by a certain application program, when the card reader / writer is replaced with a PC / SC compatible one, the PC / SC conversion unit becomes a function. By having them in the form of classes and modules, existing assets can be used without changing application programs.

また、本実施形態では、通信制御ソフトウェア部220は、リソースマネージャ230を通して、カードリーダライタ30Aとの間で通信機能を提供し、PC/SC変換部260は、通信制御ソフトウェア部220の一部として設けられている。これにより、通信制御ソフトウェア部とリソースマネージャ間において変換機能を容易にかつ的確に実現することが可能であることはもとより、通信制御ソフトウェア部の通信制御ソフトウェアの修正を極力減らすことができる。   In this embodiment, the communication control software unit 220 provides a communication function with the card reader / writer 30 </ b> A through the resource manager 230, and the PC / SC conversion unit 260 is a part of the communication control software unit 220. Is provided. As a result, the conversion function between the communication control software unit and the resource manager can be easily and accurately realized, and correction of the communication control software in the communication control software unit can be reduced as much as possible.

[変更例]
ここで、本実施形態に係る上位装置20における図7(A)に示す通信機能提供装置200Aの変更例について説明する。
[Example of change]
Here, a modified example of the communication function providing apparatus 200A illustrated in FIG. 7A in the higher-level apparatus 20 according to the present embodiment will be described.

[第1の変更例]
図8は、本実施形態に係る上位装置における通信機能提供装置の第1の変更例について説明するための図である。
[First change example]
FIG. 8 is a diagram for explaining a first modification of the communication function providing device in the host device according to the present embodiment.

この第1の変更例においては、RS−232CインタフェースのRS−232Cカードリーダライタ30−1をUSBインタフェースのPC/SC対応のUSBカードリーダライタ30A−1に交換した場合を例としている。交換前は上位装置20のホスト側RS−232C通信部28の通信ポートにRS−232CインタフェースのRS−232Cカードリーダライタ30−1が接続されている。この場合、通信機能提供装置200Bにおいて、AP部210BはRS−232Cカードリーダライタ制御用のアプリケーションプログラムを有している。通信制御ソフトウェア部270Bは、RS−232Cカードリーダライタと上位装置20との通信を制御するような機能を提供する。また、デバイスドライバ部としてはOS標準搭載RS−232C関連デバイスドライバ部280Bが設けられている。   In the first modification, the RS-232C card reader / writer 30-1 of the RS-232C interface is replaced with a USB interface PC / SC compatible USB card reader / writer 30A-1. Before the replacement, the RS-232C card reader / writer 30-1 of the RS-232C interface is connected to the communication port of the host-side RS-232C communication unit 28 of the host device 20. In this case, in the communication function providing apparatus 200B, the AP unit 210B has an application program for controlling the RS-232C card reader / writer. The communication control software unit 270B provides a function for controlling communication between the RS-232C card reader / writer and the host device 20. Further, as a device driver unit, an OS standard-equipped RS-232C-related device driver unit 280B is provided.

このような状態から、RS−232CインタフェースのRS−232Cカードリーダライタ30−1をUSBインタフェースのPC/SC対応のUSBカードリーダライタ30A−1に交換した場合、PC/SC変換部260を適用したことにより、次のようなごく小さな変更が伴うだけで、制御していたAP部210のアプリケーションプログラムは変更せずに使用できる。この場合、通信制御ソフトウェア部220Bは、OS標準搭載PC/SC制御用サービスであるリソースマネージャ230を通して、PC/SC対応のUSBカードリーダライタ30A−1と上位装置20との通信を制御するような機能を提供するように構成される。また、PC/SCデバイスドライバ部240Bは、PC/SC対応のUSBカードリーダライタ30A−1用PC/SCデバイスドライバ部として構成される。   In this state, when the RS-232C card reader / writer 30-1 of the RS-232C interface is replaced with a USB interface PC / SC compatible USB card reader / writer 30A-1, the PC / SC conversion unit 260 is applied. As a result, the application program of the AP unit 210 that is being controlled can be used without change, with only the following minor changes. In this case, the communication control software unit 220B controls communication between the PC / SC compatible USB card reader / writer 30A-1 and the host device 20 through the resource manager 230, which is a standard OS-installed PC / SC control service. Configured to provide functionality. The PC / SC device driver 240B is configured as a PC / SC device driver for the PC / SC compatible USB card reader / writer 30A-1.

この第1の変更例のように、RS−232CインタフェースのRS−232CカードリーダライタをUSBインタフェースのPC/SC対応のUSBカードリーダライタに交換しても、AP部210Bにおける制御していたアプリケーションプログラムは変更せずに使用できる。   Even if the RS-232C card reader / writer of the RS-232C interface is replaced with a USB card PC / SC compatible USB card reader / writer of the USB interface as in the first modification, the application program controlled in the AP unit 210B Can be used without modification.

[第2の変更例]
図9は、本実施形態に係る上位装置における通信機能提供装置の第2の変更例について説明するための図である。
[Second modification]
FIG. 9 is a diagram for explaining a second modification of the communication function providing device in the host device according to the present embodiment.

図9の第2の変更例は、図8の第1の変更例にて使用したUSBインタフェースのPC/SC対応のUSBカードリーダライタ30A−1を別のUSBインタフェースのPC/SC対応のUSBカードリーダライタ30A−2に交換した例である。この場合も、PC/SC変換部260を適用したことにより、次のようなごく小さな変更が伴うだけで、制御していたAP部210のアプリケーションプログラムは変更せずに使用できる。この場合、通信制御ソフトウェア部220Cは、OS標準搭載PC/SC制御用サービスであるリソースマネージャ230を通して、PC/SC対応のUSBカードリーダライタ30A−1と上位装置20との通信を制御するような機能を提供するように構成される。また、PC/SCデバイスドライバ部240Bは、PC/SC対応のUSBカードリーダライタ30A−2用PC/SCデバイスドライバ部として構成される。   9 is different from the USB interface PC / SC compatible USB card reader / writer 30A-1 used in the first modified example of FIG. 8 in another USB interface PC / SC compatible USB card. In this example, the reader / writer 30A-2 is replaced. Also in this case, the application program of the AP unit 210 that has been controlled can be used without being changed by applying the PC / SC conversion unit 260 with only the following very small changes. In this case, the communication control software unit 220C controls communication between the PC / SC compatible USB card reader / writer 30A-1 and the host device 20 through the resource manager 230, which is a standard OS-installed PC / SC control service. Configured to provide functionality. The PC / SC device driver 240B is configured as a PC / SC device driver for the PC / SC compatible USB card reader / writer 30A-2.

この第2の変更例のように、USBインタフェースのPC/SC対応のUSBカードリーダライタを別のUSBインタフェースのPC/SCのUSB対応カードリーダライタに交換しても、AP部210Bにおける制御していたアプリケーションプログラムは変更せずに使用できる。   Even if the USB interface PC / SC compatible USB card reader / writer is replaced with another USB interface PC / SC USB compatible card reader / writer as in the second modified example, the control in the AP unit 210B is performed. The application program can be used without change.

なお、標準インタフェース仕様としては、PC/SC以外に、XFSやO−POS等がある。
また、本実施形態においては、情報の読み取りまたは書き込みを行うカードリーダライタに本発明を適用した例について説明したが、本発明は、情報の読み取りのみを行うカードリーダにも適用可能である。
Note that standard interface specifications include XFS and O-POS in addition to PC / SC.
In this embodiment, an example in which the present invention is applied to a card reader / writer that reads or writes information has been described. However, the present invention can also be applied to a card reader that only reads information.

なお、以上詳細に説明したソフトウェア構成は、上記手順に応じたプログラムとして形成し、CPU等のコンピュータで実行するように構成することも可能である。また、このようなプログラムは、半導体メモリ、磁気ディスク、光ディスク、フロッピー(登録商標)ディスク等の記録媒体、この記録媒体をセットしたコンピュータによりアクセスし上記プログラムを実行するように構成可能である。   Note that the software configuration described in detail above can be formed as a program according to the above procedure and executed by a computer such as a CPU. Further, such a program can be configured to be accessed by a recording medium such as a semiconductor memory, a magnetic disk, an optical disk, a floppy (registered trademark) disk, or the like, and to execute the program by a computer in which the recording medium is set.

10,10A〜10C・・・通信システム、20・・・上位装置(ホストコンピュータ)、21・・・CPU、22・・・ROM、23・・・RAM、24・・・ストレージユニット、25・・・表示装置、26・・・操作部、261・・・キーボード、262・・・マウス、27・・・ホスト側USB通信部、28・・・ホスト側RS−232C通信部、200.200A〜200C・・・通信機能提供装置、210,210A,210B・・・アプリケーションプログラム部(AP部)、220,220A〜220C・・・通信制御ソフトウェア部、230・・・リソースマネージャ(OS標準搭載PC/SC制御用サービス)、240,240A〜240C・・・PC/SC対応カードリーダライタ用PC/SCデバイスドライバ部、250,250A・・・OS標準搭載デバイスドライバ部、260・・・PC/SC変換部、30,30−1,30A,30A−1,30A−2・・・カードリーダライタ(電子機器デバイス)。   10, 10A to 10C: communication system, 20: host device (host computer), 21: CPU, 22: ROM, 23: RAM, 24: storage unit, 25 ... Display device 26 ... operation unit 261 keyboard 262 mouse 27 host USB communication unit 28 host RS-232C communication unit 200.200A to 200C ... Communication function providing device, 210, 210A, 210B ... Application program part (AP part), 220, 220A to 220C ... Communication control software part, 230 ... Resource manager (PC / SC with standard OS) Control service), 240, 240A-240C ... PC / SC compatible card reader / writer PC / SC device driver section, 50,250A ··· OS standard with the device driver unit, 260 ··· PC / SC conversion unit, 30,30-1,30A, 30A-1,30A-2 ··· card reader-writer (electronic equipment devices).

Claims (5)

電子機器デバイスとの間で情報の送受信を行う通信機能を提供する通信機能提供装置であって、
前記電子機器デバイスの動作を制御するアプリケーションプログラム部と、
前記電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェア部と、
所定のオペレーティングシステム(OS)環境において同類の前記電子機器デバイスの仕様に依存しない標準インタフェース仕様に応じて前記電子機器デバイス関連のリソースを管理するためのリソースマネージャと、
前記標準インタフェース仕様対応の電子機器デバイスの機能を利用するためのインタフェースを提供する標準インタフェース仕様対応デバイスドライバ部と、
前記通信制御ソフトウェア部と前記リソースマネージャとの間で前記標準インタフェース仕様対応の基本通信機能を提供する標準インタフェース仕様変換部と
を有し、
前記通信制御ソフトウェア部は、
前記リソースマネージャを通して、前記電子機器デバイスとの間で通信機能を提供し、
前記標準インタフェース仕様変換部は、
前記通信制御ソフトウェア部の一部として設けられ、
前記標準インタフェース仕様変換部は、
標準インタフェース仕様対応の変換関数群を備え、
前記標準インタフェース仕様対応の変換関数群は、
前記電子機器デバイスとの通信を確立するための第1関数と、
前記電子機器デバイスとの通信を終息するための第2関数と、
前記電子機器デバイスの処理対象とのデータの送受信を行うための第3関数と、
前記電子機器デバイスの情報を取得するための第4関数と、
前記電子機器デバイス特有の機能に関するコマンド/レスポンスの各データを送受信するための第5関数と、を少なくとも含み、
前記電子機器デバイスはカードリーダライタである
ことを特徴とする通信機能提供装置。
A communication function providing apparatus that provides a communication function for transmitting and receiving information to and from an electronic device device,
An application program unit for controlling the operation of the electronic device;
A communication control software unit that provides a communication function with the electronic device;
A resource manager for managing resources related to the electronic device device in accordance with a standard interface specification that does not depend on the specification of the same electronic device device in a predetermined operating system (OS) environment;
A standard interface specification compatible device driver unit that provides an interface for using the function of the electronic device device compatible with the standard interface specification;
Possess a standard interface specification converter for providing the basic communication functions of a standard interface specification corresponding to and from the resource manager and the communication control software unit,
The communication control software unit is
Providing a communication function with the electronic device through the resource manager;
The standard interface specification converter is
Provided as part of the communication control software unit,
The standard interface specification converter is
A conversion function group compatible with the standard interface specifications is provided.
The conversion function group corresponding to the standard interface specification is:
A first function for establishing communication with the electronic device;
A second function for terminating communication with the electronic device;
A third function for transmitting / receiving data to / from the processing target of the electronic device device;
A fourth function for obtaining information of the electronic device;
A fifth function for transmitting / receiving command / response data related to functions unique to the electronic device,
The communication function providing apparatus, wherein the electronic device is a card reader / writer .
前記標準インタフェース仕様はPC/SC(Personal Computer/Smart Card)である
ことを特徴とする請求項記載の通信機能提供装置。
The standard interface specification communication function providing apparatus according to claim 1, characterized in that the PC / SC (Personal Computer / Smart Card).
上位装置と、
前記上位装置との間で通信を行い、当該通信の結果に基づいて所定の処理を実行する電子機器デバイスと、を有し、
前記上位装置は、
前記電子機器デバイスの動作を制御するアプリケーションプログラム部と、
前記電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェア部と、
所定のオペレーティングシステム(OS)環境において同類の前記電子機器デバイスの仕様に依存しない標準インタフェース仕様に応じて前記電子機器デバイス関連のリソースを管理するためのリソースマネージャと、
前記標準インタフェース仕様対応の電子機器デバイスの機能を利用するためのインタフェースを提供する標準インタフェース仕様対応デバイスドライバ部と、
前記通信制御ソフトウェア部と前記リソースマネージャとの間で前記標準インタフェース仕様対応の基本通信機能を提供する標準インタフェース仕様変換部と
を有し、
前記通信制御ソフトウェア部は、
前記リソースマネージャを通して、前記電子機器デバイスとの間で通信機能を提供し、
前記標準インタフェース仕様変換部は、
前記通信制御ソフトウェア部の一部として設けられ、
前記標準インタフェース仕様変換部は、
標準インタフェース仕様対応の変換関数群を備え、
前記標準インタフェース仕様対応の変換関数群は、
前記電子機器デバイスとの通信を確立するための第1関数と、
前記電子機器デバイスとの通信を終息するための第2関数と、
前記電子機器デバイスの処理対象とのデータの送受信を行うための第3関数と、
前記電子機器デバイスの情報を取得するための第4関数と、
前記電子機器デバイス特有の機能に関するコマンド/レスポンスの各データを送受信するための第5関数と、を少なくとも含み、
前記電子機器デバイスはカードリーダライタである
ことを特徴とする通信システム。
A host device;
An electronic device that performs communication with the host device and executes predetermined processing based on a result of the communication,
The host device is
An application program unit for controlling the operation of the electronic device;
A communication control software unit that provides a communication function with the electronic device;
A resource manager for managing resources related to the electronic device device in accordance with a standard interface specification that does not depend on the specification of the same electronic device device in a predetermined operating system (OS) environment;
A standard interface specification compatible device driver unit that provides an interface for using the function of the electronic device device compatible with the standard interface specification;
Possess a standard interface specification converter for providing the basic communication functions of a standard interface specification corresponding to and from the resource manager and the communication control software unit,
The communication control software unit is
Providing a communication function with the electronic device through the resource manager;
The standard interface specification converter is
Provided as part of the communication control software unit,
The standard interface specification converter is
A conversion function group compatible with the standard interface specifications is provided.
The conversion function group corresponding to the standard interface specification is:
A first function for establishing communication with the electronic device;
A second function for terminating communication with the electronic device;
A third function for transmitting / receiving data to / from the processing target of the electronic device device;
A fourth function for obtaining information of the electronic device;
A fifth function for transmitting / receiving command / response data related to functions unique to the electronic device,
A communication system, wherein the electronic device is a card reader / writer .
前記標準インタフェース仕様はPC/SC(Personal Computer/Smart Card)である
ことを特徴とする請求項記載の通信システム。
The communication system according to claim 3, wherein the standard interface specification is PC / SC (Personal Computer / Smart Card).
電子機器デバイスとの間で情報の送受信を行う通信機能を提供する通信機能提供方法であって、
前記電子機器デバイスはカードリーダライタであり、
前記電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェア部と、所定のオペレーティングシステム(OS)環境において同類の前記電子機器デバイスの仕様に依存しない標準インタフェース仕様に応じて前記電子機器デバイス関連のリソースを管理するためのリソースマネージャとの間で、標準インタフェース仕様変換部により、前記標準インタフェース仕様対応の基本通信機能を提供し、
標準インタフェース仕様対応デバイスドライバ部により前記標準インタフェース仕様対応の電子機器デバイスの機能を利用するためのインタフェースを提供し、
提供された通信機能およびインタフェースを通して、前記電子機器デバイスの動作をアプリケーションプログラム部により制御し、
前記通信制御ソフトウェア部により、前記リソースマネージャを通して、前記電子機器デバイスとの間で通信機能を提供し、
前記標準インタフェース仕様変換部は、前記通信制御ソフトウェア部の一部として設け、
前記標準インタフェース仕様変換部には、
少なくとも第1関数、第2関数、第3関数、第4関数、および第5関数を含む標準インタフェース仕様対応の変換関数群を形成し、
前記電子機器デバイスとの通信を確立するためには、前記第1関数を用いた処理を行い、
前記電子機器デバイスとの通信を終息するためには、前記第2関数を用いた処理を行い、
前記電子機器デバイスの処理対象とのデータの送受信を行うためには、前記第3関数を用いた処理を行い、
前記電子機器デバイスの情報を取得するためには、前記第4関数を用いた処理を行い、
前記電子機器デバイス特有の機能に関するコマンド/レスポンスの各データを送受信するためには、前記第5関数を用いた処理を行う
ことを特徴とする通信機能提供方法。
A communication function providing method for providing a communication function for transmitting and receiving information to and from an electronic device device,
The electronic device is a card reader / writer,
A communication control software unit that provides a communication function with the electronic device and the electronic device related to a standard interface specification that does not depend on the specification of the similar electronic device in a predetermined operating system (OS) environment Provide a basic communication function corresponding to the standard interface specification by the standard interface specification conversion unit with the resource manager for managing the resource of
Provide an interface for using the function of the electronic device device that supports the standard interface specification by the device driver unit that supports the standard interface specification,
Through the provided communication function and interface, the operation of the electronic device is controlled by the application program unit ,
The communication control software unit provides a communication function with the electronic device through the resource manager,
The standard interface specification conversion unit is provided as a part of the communication control software unit,
In the standard interface specification conversion unit,
Forming a conversion function group corresponding to a standard interface specification including at least a first function, a second function, a third function, a fourth function, and a fifth function;
In order to establish communication with the electronic device, a process using the first function is performed,
In order to terminate the communication with the electronic device, a process using the second function is performed,
In order to transmit / receive data to / from the processing target of the electronic device, the processing using the third function is performed,
In order to obtain information on the electronic device, a process using the fourth function is performed,
In order to transmit / receive each command / response data regarding the function peculiar to the said electronic device , the communication function provision method characterized by performing the process using the said 5th function .
JP2014073511A 2014-03-31 2014-03-31 COMMUNICATION FUNCTION PROVIDING DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION FUNCTION PROVIDING METHOD Expired - Fee Related JP6340230B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014073511A JP6340230B2 (en) 2014-03-31 2014-03-31 COMMUNICATION FUNCTION PROVIDING DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION FUNCTION PROVIDING METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014073511A JP6340230B2 (en) 2014-03-31 2014-03-31 COMMUNICATION FUNCTION PROVIDING DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION FUNCTION PROVIDING METHOD

Publications (2)

Publication Number Publication Date
JP2015197688A JP2015197688A (en) 2015-11-09
JP6340230B2 true JP6340230B2 (en) 2018-06-06

Family

ID=54547359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014073511A Expired - Fee Related JP6340230B2 (en) 2014-03-31 2014-03-31 COMMUNICATION FUNCTION PROVIDING DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION FUNCTION PROVIDING METHOD

Country Status (1)

Country Link
JP (1) JP6340230B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6360952B1 (en) * 1998-05-29 2002-03-26 Digital Privacy, Inc. Card access system supporting multiple cards and card readers
JP2000347869A (en) * 1999-06-07 2000-12-15 Toshiba Corp Ic card using device, ic card and storage medium
US8317096B2 (en) * 2006-07-14 2012-11-27 Microsoft Corporation Smart card terminal side data and management framework

Also Published As

Publication number Publication date
JP2015197688A (en) 2015-11-09

Similar Documents

Publication Publication Date Title
US6769622B1 (en) System and method for simulating universal serial bus smart card device connected to USB host
EP2124155B1 (en) Information processing apparatus, information processing system, method of processing information, and computer program
CN106598480B (en) Electronic system and its operating method with Interface Controller mechanism
US20120117275A1 (en) Providing indirect data addressing for a control block at a channel subsystem of an i/o processing system
JP5549854B2 (en) Information processing apparatus and method, and program
US9779047B2 (en) Universal intelligent platform management interface (IPMI) host to baseboard management controller (BMC) communication for non-x86 and legacy free systems
CN109426613A (en) The method and its computer system of tune-up data are retrieved in UEFI
JP2018531565A (en) NFC “split stack” architecture
JP2018531565A6 (en) NFC “split stack” architecture
KR100782113B1 (en) Memory card system and method transmitting host identification information thereof
EP2835743A1 (en) I/o device sharing system and i/o device sharing method
US20110072168A1 (en) Data transfer system with different operating modes
US20110197203A1 (en) Communication device, communication method and program
CN106067049A (en) A kind of Android client card reading method based on NFC technique
JP6340230B2 (en) COMMUNICATION FUNCTION PROVIDING DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION FUNCTION PROVIDING METHOD
JP6046487B2 (en) Electronic device and information processing system
EP2065802A2 (en) System and method of accessing a device
JP2009123144A (en) Ic card reader/writer
TWM591654U (en) Card reader and data reading and writing system
US20140280957A1 (en) Dynamic Assembly and Dispatch of Controlling Software
CN107612594A (en) A kind of near-field communication design method of service-oriented device information
TWI718601B (en) Card reader, data reading and writing system, and reading and writing method thereof
CN109597786B (en) Interaction method of host and hardware acceleration module, hardware acceleration device and medium
CN100504832C (en) Data processing system
KR101033177B1 (en) Emulator substituting for universal serial bus devices by virtual operation of the emulator, during automation test process of work program, and operation method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170208

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20171018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20171031

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20171121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171220

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180514

R150 Certificate of patent or registration of utility model

Ref document number: 6340230

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees