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 PDFInfo
- 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
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に対応するプログラミングインタフェースを含んでいる。
なお、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.
既存の通信システム(情報処理システム)においては、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
本発明の目的は、電子機器デバイスとの間で通信機能を提供する通信制御ソフトウェアの修正に多大な工数をかけずに、既存のアプリケーションとの互換性を保つことが可能な通信機能提供装置、通信システム、および通信機能提供方法を提供することにある。 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.
以下、本発明の実施形態を図面に関連付けて説明する。
以下の実施形態においては、電子機器デバイスとしてのカードリーダライタを例に説明する。
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
[通信システム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 /
基本的に、カードリーダライタ30は、上位装置20からのコマンド(たとえばコマンドAPDU:Application Protocol Data Unit)を受信し、カード40との通信プロトコルに沿った形式(たとえばコマンドTPDU:Transmission Protocol Data Unit)に変換する。そして、カードリーダライタ30は、電圧や通信速度等も変換した後に、そのコマンドをカード40へ送信する。また、カードリーダライタ30は、カード40からの応答を受信した後、逆変換(レスポンスTPDUからレスポンスAPDUへ)を行って、その応答を上位装置20へ送信する。
Basically, the card reader /
上位装置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
本実施形態においては、このようなカードリーダライタ30と通信を行う上位装置20には、カードリーダライタ30との接続機器に応じた通信を制御するための通信機能提供装置を実現する通信制御用ソフトウェアシステムが適用されている。
In the present embodiment, the
本実施形態において、カードリーダライタ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
なお、本実施形態において、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
ここでに、上記構成を有する通信システム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
[上位装置(ホストコンピュータ)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
As described above, the
図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
本例においては、図中のストレージユニット24内に保存されたオペレーティングシステム(OS)、ミドルウェアMW、アプリケーション等のプログラムがソフトウェアシステムの一部をなし、実行時にいわゆるコンピュータ(電子計算機)のソフトウェアとしてRAM23上に展開される。
In this example, programs such as an operating system (OS), middleware MW, and applications stored in the
このような構成を有する上位装置20においては、状況に応じた処理を実行するアプリケーションプログラムおよびカードリーダライタ30との通信制御用の複数のミドルウェアを含むソフトウェアシステムを有している。本実施形態においては、この通信制御用ソフトウェアシステムにより、電子機器デバイスであるカードリーダライタ30との接続機器に応じた通信を制御するための、後で詳述する通信機能提供装置200を実現している。
The
上述したように、上位装置20において、CPU21が全体の制御を行う。上位装置20は、カードリーダライタ30との通常の通信を行う場合に、CPU21の制御の下、ホスト側USB通信部27あるいはホスト側RS−232C通信部28を通して、通信ケーブル50または60により接続されたカードリーダライタ30の通信部との間でUSBやRS−232Cの通信規格に準拠した通信を行う。
As described above, in the
以上、上位装置20のハードウェアの具体的な構成および機能について説明した。
次に、カードリーダライタ30の構成および機能について説明する。
The specific configuration and functions of the hardware of the higher-
Next, the configuration and function of the card reader /
[カードリーダライタ30の構成および機能]
カードリーダライタ30は、上位装置20との通信およびカード40との通信機能を有する。カードリーダライタ30は、上位装置20とのメイン(通常)の通信はUSBやRS−232C等の通信規格に準拠して行う。
[Configuration and Function of Card Reader / Writer 30]
The card reader /
前述したように、図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 /
カードリーダライタ30は、通信部314さらには通信ケーブル50あるいは60を介して上位装置20と接続され、カードI/F315を介してカード40と(有線または無線で)通信可能に構成されている。カードリーダライタ30は、上位装置20との間の通信規約に沿った情報列のコマンドに基づき動作し、カード40との間の通信規約に沿った情報列の送受信を行う機能を有する。
The card reader /
通信部314は、上位装置20からカードリーダライタ30へ送られた信号を所定レベルの信号に変換し、それをCPU311に転送する機能を有する。また、CPU311からの信号を逆変換して、上位装置20に転送する。
The
CPU311は、上位装置20との間の通信規約に沿った情報列(たとえばコマンドAPDU)内のコマンドに基づいて動作する。そして、CPU311は、そのコマンドAPDUを、カード40との間の通信規約に沿った情報列に変換し、これをカード40に送信する。すなわち、CPU311は、上位装置20からのコマンド(コマンドAPDU)を、カード40との通信プロトコルに沿った形式(コマンドTPDU)に変換する。変換されたコマンドTPDUは、カードI/F315を通じてカード40に送信される。
The
一方で、カード40からのレスポンス受信時には、CPU311はレスポンスTPDUをレスポンスAPDUに変換する。変換されたレスポンスAPDUは、通信部314を通じて上位装置20に転送される。
On the other hand, when receiving a response from the
カードI/F315は、コマンドTPDUを、カード40に応じた電圧や通信速度に変換し、カード40に送信する。また、カードI/F315は、カード40から受信した信号を所定レベルの信号に変換し、それをCPU311に伝える機能を有する。
The card I /
ROM312は、プログラム等の不揮発性データを保存する。RAM313は、CPU311のワーキングエリアとして機能し、一時的にデータを保存する。
The
以上、上位装置20およびカードリーダライタ30のハードウェアの具体的な構成および機能について説明した。次に、使用しているカードリーダライタをPC/SC対応のカードリーダライタに交換する場合に、カードリーダライタ30と上位装置20との基本通信機能を提供することが可能な、上位装置20におけるカードリーダライタとの接続機器に応じた通信を制御するための通信制御用ソフトウェアシステムにより形成される通信機能提供装置200の構成および機能について説明する。
The specific hardware configuration and functions of the
[上位装置20の通信機能提供装置200の構成および機能]
前述したように、図4は、本実施形態に係る上位装置20において、ソフトウェアシステムによって形成される通信機能提供装置200の一例を示している。図4は、上位装置20にPC/SC対応のカードリーダライタ(A)30Aが接続される例を示している。
[Configuration and Function of Communication
As described above, FIG. 4 shows an example of the communication
本通信機能提供装置200は、アプリケーションプログラム(AP)部210、通信制御ソフトウェア部220、OS標準搭載PC/SC制御用サービスであるリソースマネージャ230、PC/SC対応カードリーダライタ用PC/SCデバイスドライバ部240、OS標準搭載デバイスドライバ部250、およびPC/SC変換部260を含んで構成されている。
The communication
なお、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)
AP部210は、通信制御ソフトウェア部220の通信制御ソフトウェアを呼び出し、上位装置20に接続されて電子機器デバイスであるカードリーダライタ30Aの動作(操作)を、アプリケーションプログラムAに基づいて制御する。
The
通信制御ソフトウェア部220は、カードリーダライタ30Aとの間で通信機能を提供する。より具体的には、通信制御ソフトウェア部220は、OS標準搭載PC/SC制御用サービスであるリソースマネージャ230を通して、PC/SC対応カードリーダライタ30Aと上位装置(ホスト装置)20との通信を制御するような機能を提供する。
The communication
リソースマネージャ230は、本実施形態において標準インタフェース仕様に相当するPC/SC仕様に応じてPC/SC対応カードリーダライタ(A)30A関連のリソース、本例ではPC/SC対応カードリーダライタ用PC/SCデバイスドライバ部240等を一括に管理する。リソースマネージャ230は、PC/SC変換部260の指示によりオープンまたはクローズされ、オープン時にはデータの送受信、カード40のステータス情報の取得や、カードリーダライタ特有の機能に関するデータの取得等を行う。
The
PC/SC対応カードリーダライタ用PC/SCデバイスドライバ部240は、PC/SC対応カードリーダライタ(A)30Aが接続される各通信部(27,28)を制御するOS標準搭載デバイスドライバ部250を通し、アプリケーションソフトウェアに対して抽象化・共通化したインタフェースを提供する。
The PC / SC
OS標準搭載デバイスドライバ部250は、カードリーダライタ30,30Aが接続される各通信部(27,28)に応じた制御をする。
The OS standard
PC/SC変換部260は、関数、クラス、あるいはモジュール等により形成され、通信制御ソフトウェア部220とリソースマネージャ230との間でPC/SC仕様対応(標準インタフェース仕様対応)の基本通信機能を提供する。本実施形態において、あるアプリケーションプログラムで、カードリーダライタを制御(操作)しているシステムにおいて、カードリーダライタをPC/SC対応のカードリーダライタ(A)30Aに交換する場合、PC/SC変換部という変換部を、関数なり、クラスなり、モジュールなりの形で持つことにより、AP部210のアプリケーションプログラムを変更せずに既存の資産を使用できる、という特徴を有している。
The PC /
通信機能提供装置200において、通信制御ソフトウェア部220は、リソースマネージャ230を通して、電子機器デバイスであるPC/SC対応カードリーダライタ30Aとの間で通信機能を提供する。本実施形態においては、PC/SC変換部260は、通信制御ソフトウェア部220の一部として設けられている。これにより、通信制御ソフトウェア部220とリソースマネージャ230間において変換機能を容易にかつ的確に実現することが可能であることはもとより、通信制御ソフトウェア部の通信制御ソフトウェアの修正を極力減らすことができる。換言すれば、PC/SC変換部260を作成したことで、通信制御ソフトウェア部220は、その基本的な機能は今までと同じであり、PC/SC変換部260とのデータのやり取りなどで修正する程度である。
In the communication
本実施形態のPC/SC変換部260は、一例として関数の形で変換部が形成されており、カードリーダライタをPC/SC対応のカードリーダライタ30Aに交換する場合、アプリケーションプログラムを変更せずに既存の資産を使用できる。
The PC /
本実施形態のPC/SC変換部260は、PC/SC対応の変換関数群を備えている。図5は、本実施形態に係るPC/SC変換部を形成する変換関数群を、処理、機能を含めて示す図である。
The PC /
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 /
メイン関数の第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-
メイン関数の第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
メイン関数の第4関数「ConvCardStatus」は、カード位置等のカードリーダライタ30A関連の情報を取得するための関数であり、現在カードがどこにあるのか、カードは活性化状態か、等の情報をリソースマネージャ230から取得する。
The fourth function “ConvCardStatus” of the main function is a function for acquiring information related to the card reader /
メイン関数の第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 /
オプション関数の第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
オプション関数の第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
オプション関数の第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
PC/SC変換部260は、通常の処理においてはメイン関数を用いた処理を行う。ここで、メイン関数を用いた処理の一例を図6に関連付けて説明する。図6は、本実施形態に係るPC/SC変換部におけるメイン関数を用いた処理の一例を説明するためのフローチャートである。
The PC /
たとえば、通信制御ソフトウェア部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
ステップ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
このように、カードリーダライタを使用する通信システム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
以上のように、カードリーダライタを使用する通信システム10において、使用しているカードリーダライタをPC/SC対応のカードリーダライタ(A)30Aに交換する場合、カードリーダライタと上位装置20との基本通信機能を提供するようなソフトウェア(ドライバ、ライブラリなど)をPC/SC仕様することを可能するために、PC/SC変換部(関数、クラス、モジュール等)260を用いたことによる効果について、より具体的に考察する。
As described above, in the
図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
ここでは、図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
ここで、コスト削減、システム仕様変更、標準化等の目的で、使用している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
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
よって、図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
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
本例において、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 /
以上説明したように、本実施形態によれば、以下の効果を得ることができる。
既存システムにて、カードリーダライタを交換するような場合、コスト削減、システム仕様変更、標準化等の理由で、比較的安価な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
また、本実施形態では、あるアプリケーションプログラムで、カードリーダライタを制御(操作)しているシステムにおいて、カードリーダライタを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
[変更例]
ここで、本実施形態に係る上位装置20における図7(A)に示す通信機能提供装置200Aの変更例について説明する。
[Example of change]
Here, a modified example of the communication
[第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 /
このような状態から、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 /
この第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
[第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 /
この第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
なお、標準インタフェース仕様としては、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 ...
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 .
ことを特徴とする請求項1記載の通信機能提供装置。 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 .
ことを特徴とする請求項3記載の通信システム。 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 .
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)
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 |
-
2014
- 2014-03-31 JP JP2014073511A patent/JP6340230B2/en not_active Expired - Fee Related
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 |