JP4957209B2 - IC card communication module, IC card communication method, and computer program - Google Patents

IC card communication module, IC card communication method, and computer program Download PDF

Info

Publication number
JP4957209B2
JP4957209B2 JP2006320752A JP2006320752A JP4957209B2 JP 4957209 B2 JP4957209 B2 JP 4957209B2 JP 2006320752 A JP2006320752 A JP 2006320752A JP 2006320752 A JP2006320752 A JP 2006320752A JP 4957209 B2 JP4957209 B2 JP 4957209B2
Authority
JP
Japan
Prior art keywords
communication
card
amount
sim
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006320752A
Other languages
Japanese (ja)
Other versions
JP2008134846A (en
Inventor
創 石塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2006320752A priority Critical patent/JP4957209B2/en
Publication of JP2008134846A publication Critical patent/JP2008134846A/en
Application granted granted Critical
Publication of JP4957209B2 publication Critical patent/JP4957209B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Closed-Circuit Television Systems (AREA)

Description

本発明は、ICカードとUSBで通信するための技術に関し、更に詳しくは、ICカードとやりとりする通信量を調整する技術に関する。   The present invention relates to a technique for communicating with an IC card via USB, and more particularly, to a technique for adjusting the amount of communication with the IC card.

ICカードに実装されたICチップ近傍を短冊状に切り取ったSIM(Subscriber Identity Module)は、機器に組み込まれ、機器で利用するデータを暗号化/復号するデバイスとして利用されている。   A SIM (Subscriber Identity Module) in which the vicinity of an IC chip mounted on an IC card is cut into a strip shape is incorporated in a device and used as a device for encrypting / decrypting data used in the device.

SIMを機器に組み込む一例として、同一出願人は、インターネットに接続できる監視カメラ2にSIMを搭載し、監視カメラ2が撮像した動画をSIMで暗号化するシステムを出願している(特許文献1)。   As an example of incorporating a SIM into a device, the same applicant has applied for a system in which a SIM is mounted on a monitoring camera 2 that can be connected to the Internet, and a moving image captured by the monitoring camera 2 is encrypted by the SIM (Patent Document 1). .

監視カメラ2などの機器とSIMとを組み合わせることで、データを暗号化するために施す機器の変更点が最小限に抑えられ、更に、暗号アルゴリズム交換も容易になるメリットが生じる。   By combining the device such as the monitoring camera 2 and the SIM, there is a merit that the change of the device to be performed for encrypting the data can be minimized and the encryption algorithm can be easily exchanged.

しかしながら、SIMの通信速度は、標準で9600bpsと一般的なコンピュータの周辺機器の通信速度やネットワークの通信速度と比べて非常に遅く、機器にSIMを組み込み利用する際は、機器とSIM間の通信時間がボトルネックとなってしまうため、特許文献2で開示されているようなUSBインターフェースを搭載し、通信速度を飛躍的に向上させることの可能なICチップが開発されている。
特願2005−108601号公報 特表2003−532936号公報
However, the communication speed of the SIM is 9600 bps as standard, which is very slow compared to the communication speed of a general computer peripheral device and the communication speed of the network. Since time becomes a bottleneck, an IC chip that is equipped with a USB interface as disclosed in Patent Document 2 and is capable of dramatically improving the communication speed has been developed.
Japanese Patent Application No. 2005-108601 Special table 2003-532936 gazette

確かに、ICチップの通信インターフェースをUSBインターフェースとすることで、機器とICカード間の通信速度は向上する。しかし、機器ごとに、USBで接続される周辺装置が異なるため、ICカードとやりとりできる最大の通信量(データ)の大きさはその時の状況によって異なる。   Certainly, the communication speed between the device and the IC card is improved by using the USB interface as the communication interface of the IC chip. However, since the peripheral devices connected by USB are different for each device, the maximum amount of data (data) that can be exchanged with the IC card varies depending on the situation at that time.

そこで、本発明は、機器とICカードがUSBで通信する場合、ICカードとやりとりする通信量(データ)の大きさを、ICカードと通信する時の状況に合わせて調整することができるICカード通信モジュール、ICカード通信方法及びコンピュータプログラムを提供することを目的とする。   Accordingly, the present invention provides an IC card that can adjust the amount of data (data) exchanged with the IC card according to the situation when communicating with the IC card when the device and the IC card communicate with each other via USB. An object is to provide a communication module, an IC card communication method, and a computer program.

上述した課題を解決する第1の発明は、ICカードとUSBで通信する機器に組み込まれ、前記機器に装着される前記ICカードとの通信を制御するICカード通信モジュールであって、前記ICカード通信モジュールは、前記ICカードとやりとりする通信量を初期値から始めて、前記通信量に定数を加えることで前記通信量を大きくし、前記通信量を変更するごとに、前記ICカードと一定回数通信したときの通信時間を計測し、計測した前記通信時間が最も小さくなったときの前記通信量を最適値とする通信量調整手段を備えていることを特徴とする。   A first invention that solves the above-described problem is an IC card communication module that is incorporated in a device that communicates with an IC card via USB, and that controls communication with the IC card that is mounted on the device. The communication module starts with an initial value for the amount of communication with the IC card, increases the amount of communication by adding a constant to the amount of communication, and communicates with the IC card a certain number of times each time the amount of communication is changed. And a communication amount adjusting means for measuring the communication time when the measured communication time is the shortest and setting the communication amount when the measured communication time is the smallest as an optimum value.

更に、第2の発明は、ICカードとUSBで通信するICカード通信方法であって、前記ICカード通信方法は、前記ICカードとやりとりする通信量を初期値から始めて、前記通信量に定数を加えることで前記通信量を大きくし、前記通信量を変更するごとに、前記ICカードと一定回数通信したときの通信時間を計測し、計測した前記通信時間が最も小さくなったときの前記通信量を最適値とする通信量調整工程を備えていることを特徴とする。   Further, the second invention is an IC card communication method for communicating with an IC card via USB, wherein the IC card communication method starts from an initial value for the amount of communication with the IC card and sets a constant for the amount of communication. Each time the communication amount is increased by adding, and the communication amount is changed, the communication time when communicating with the IC card a certain number of times is measured, and the communication amount when the measured communication time becomes the smallest Is provided with a communication amount adjustment step in which the optimal value is set.

更に、第3の発明は、ICカードとUSBで通信するコンピュータに組み込まれ、前記ICカードとの通信を制御するコンピュータプログラムであって、前記ICカードとやりとりする通信量を初期値から始めて、前記通信量に定数を加えることで前記通信量を大きくし、前記通信量を変更するごとに、前記ICカードと一定回数通信したときの通信時間を計測し、計測した前記通信時間が最も小さくなったときの前記通信量を最適値とする通信量調整手段として、前記機器を機能させるためのコンピュータプログラムである。   Further, the third invention is a computer program that is incorporated in a computer that communicates with an IC card via USB and controls communication with the IC card, and starts from an initial value for the amount of communication with the IC card. The communication amount was increased by adding a constant to the communication amount, and each time the communication amount was changed, the communication time when communicating with the IC card a certain number of times was measured, and the measured communication time was the smallest It is a computer program for causing the device to function as a communication amount adjusting means for setting the communication amount at the time to an optimum value.

なお、本発明において、ICカードとは、ICチップが実装されたカード媒体を意味し、上位装置と通信するためのインターフェースは接触/非接触を問うものではない。更に、本発明に係るICカードには、ICチップの周辺を短冊状に切り取ったSIM或いはUIMも含まれる。   In the present invention, an IC card means a card medium on which an IC chip is mounted, and an interface for communicating with a host device does not ask for contact / non-contact. Further, the IC card according to the present invention includes a SIM or UIM obtained by cutting the periphery of the IC chip into a strip shape.

上述した発明によれば、ICカードとやりとりするとき、小さな通信量から始めて徐々に通信量を増やしていくため、ICカードと通信する時の状況に合わせて調整することができる。   According to the above-described invention, when interacting with an IC card, the communication amount is gradually increased starting from a small amount of communication, so that it can be adjusted according to the situation when communicating with the IC card.

ここから、本発明に係るICカード通信モジュールを組み込んだコンピュータ機器の一例として、機器を監視カメラとしたときの形態について説明する。図1は、本発明に係るICカード通信モジュール20を組み込んだ監視カメラ2を説明する図である。   From here, as an example of a computer device incorporating the IC card communication module according to the present invention, a mode when the device is a surveillance camera will be described. FIG. 1 is a diagram for explaining a surveillance camera 2 incorporating an IC card communication module 20 according to the present invention.

監視カメラ2が撮像した映像の動画ファイルの漏洩と動画ファイルの改ざんとを防止するために、SIM1は映像の動画ファイルを暗号化する暗号モジュールとして利用され、監視カメラ2は、撮影した映像の動画ファイルを小さなパケットデータに分割してSIM1へ送信し、SIM1が、DESを用いて暗号化したパケットデータをメモリカード3に記録する。   In order to prevent the leakage of the video file of the video captured by the monitoring camera 2 and the alteration of the video file, the SIM 1 is used as an encryption module for encrypting the video file of the video. The file is divided into small packet data and transmitted to the SIM 1, and the SIM 1 records the packet data encrypted using DES in the memory card 3.

監視カメラ2に装着されるSIM1は通信インターフェースとしてUSBインターフェースを備え、USBインターフェースを用いてSIM1と通信するために、監視カメラ2には、本発明に係るICカード通信モジュール20が組み込まれている。   The SIM 1 attached to the monitoring camera 2 includes a USB interface as a communication interface, and the IC card communication module 20 according to the present invention is incorporated in the monitoring camera 2 in order to communicate with the SIM 1 using the USB interface.

更に、SIM1は、特許文献3で開示されている発明が適用されたICカードで、SIM1は、ISOモードとデータモードの2つのモードを有し、SIM1のモードをISOモードからデータモードへ遷移させるコマンドであるモード変更コマンド10を備える。
特願2006−175441号公報
Further, SIM1 is an IC card to which the invention disclosed in Patent Document 3 is applied. SIM1 has two modes, an ISO mode and a data mode, and the SIM1 mode is changed from the ISO mode to the data mode. A mode change command 10 which is a command is provided.
Japanese Patent Application No. 2006-175441

図2は、SIM1のモードを説明する図である。図2に図示したようにISOモードでは、SIM1と監視カメラ2間でAPDUが交換され、ISOモードで、モード変更コマンド10のコマンドAPDUをSIM1が受信したとき、SIM1のモードは、ISOモードからデータモードに遷移し、データモードでは、パケットデータとパケットデータの暗号文のみが交換される。   FIG. 2 is a diagram illustrating the SIM1 mode. As shown in FIG. 2, in the ISO mode, when the APDU is exchanged between the SIM 1 and the monitoring camera 2 and the SIM 1 receives the command APDU of the mode change command 10 in the ISO mode, the SIM 1 mode is changed from the ISO mode to the data. In the data mode, only the packet data and the ciphertext of the packet data are exchanged.

監視カメラ2に備えられたICカード通信モジュール20は、監視カメラ2が撮像した動画ファイルを暗号化してメモリカード3に記憶するとき、SIM1とやりとりするときの通信量となるパケットデータのサイズを小さなサイズから送信を始めて、徐々にパケットデータのサイズを大きくし、SIM1に送信するパケットデータのサイズを最適値に調整する機能を備える。   The IC card communication module 20 provided in the monitoring camera 2 reduces the size of the packet data serving as a communication amount when exchanging with the SIM 1 when the moving image file captured by the monitoring camera 2 is encrypted and stored in the memory card 3. It has a function of starting transmission from the size, gradually increasing the size of the packet data, and adjusting the size of the packet data to be transmitted to the SIM 1 to an optimum value.

図3は、SIM1をデータモードに遷移させるモード変更コマンド10のコマンドAPDUの一例を示した図である。   FIG. 3 is a diagram illustrating an example of a command APDU of the mode change command 10 for causing the SIM 1 to transition to the data mode.

図3で示しているように、本実施の形態において、モード変更コマンド10のコマンドAPDUの構造は、ISO/IEC7816規格のCase3のコマンド構造で、CLA、INS、P1及びP2とから成るコマンドヘッダと、Lc及びデータフィールドとから成るボディとから構成される。   As shown in FIG. 3, in the present embodiment, the structure of the command APDU of the mode change command 10 is the case 3 command structure of the ISO / IEC7816 standard, and a command header composed of CLA, INS, P1, and P2. , Lc and a data field.

モード変更コマンド10のコマンドAPDUのヘッダーに含まれるCLAとINSは、コマンドAPDUを識別するためのデータで、本実施の形態において、モード変更コマンド10のCLAは「D0h」で、INSは「00h」である。   CLA and INS included in the command APDU header of the mode change command 10 are data for identifying the command APDU. In this embodiment, the CLA of the mode change command 10 is “D0h” and the INS is “00h”. It is.

モード変更コマンド10のコマンドAPDUのヘッダーに含まれるP1およびP2は、モード変更コマンド10が実行されるときのパラメータで、本実施の形態においては、P1及びP2とも使用せず、その値はそれぞれ固定で「00h」である。   P1 and P2 included in the header of the command APDU of the mode change command 10 are parameters when the mode change command 10 is executed. In this embodiment, neither P1 nor P2 is used, and the values thereof are fixed. “00h”.

モード変更コマンド10のボディのLcは、データフィールドに含まれるデータの長さを示し、データフィールドには、データモードで送信されるパケットデータのサイズ(2バイト)と、パケットデータの送信回数(2バイト)が含まれる。   Lc of the body of the mode change command 10 indicates the length of data included in the data field. The data field includes the size of packet data (2 bytes) transmitted in the data mode and the number of packet data transmissions (2 Byte).

図4は、モード変更コマンド10のレスポンスAPDUの一例を示した図で、SIM1が暗号化したパケットデータの数が、モード変更コマンド10で示される送信回数に達したとき、SIM1のモードはISOモードに遷移し、トレイラとして、モード変更コマンド10の処理結果を示しSWと、ボディとして、最後に受信したパケットデータの暗号文を含むレスポンスAPDUを生成する。   FIG. 4 is a diagram illustrating an example of a response APDU of the mode change command 10. When the number of packet data encrypted by the SIM 1 reaches the number of transmissions indicated by the mode change command 10, the SIM 1 mode is set to the ISO mode. And the response APDU including the ciphertext of the packet data received last is generated as SW and the body indicating the processing result of the mode change command 10 as a trailer.

次に、監視カメラ2に組み込まれるICカード通信モジュール20について説明する。図5は、監視カメラ2に組み込まれるICカード通信モジュール20を説明する図である。   Next, the IC card communication module 20 incorporated in the monitoring camera 2 will be described. FIG. 5 is a diagram for explaining the IC card communication module 20 incorporated in the monitoring camera 2.

ICカード通信モジュール20は、USBコントローラなどの電子部品が実装されたインターフェースボードなどで実現され、このICカード通信モジュール20には、物理的なインターフェースであるUSBインターフェース21を制御するUSBコントローラ201と、監視カメラ2の画像処理ボードとUSBコントローラ201を仲介し、監視カメラ2がSIM1の機能を利用するときの窓口となるサービスプロバイダ200を備える。   The IC card communication module 20 is realized by an interface board on which electronic components such as a USB controller are mounted. The IC card communication module 20 includes a USB controller 201 that controls a USB interface 21 that is a physical interface, A service provider 200 is provided as an interface when the monitoring camera 2 uses the function of the SIM 1 via the image processing board of the monitoring camera 2 and the USB controller 201.

USBコントローラ201は、USBインターフェース21を監視し、USBの通信プロトコルを実現する機能を有している。サービスプロバイダ200は、監視カメラ2の画像処理ボードがSIM1の機能を利用するときのAPI(API: Application Program Interface)を提供し、監視カメラ2の画像処理ボードから送信されるパケットデータを、SIM1を用いて暗号化し、暗号化したパケットデータを監視カメラ2の画像処理ボードに返信する機能を有する。   The USB controller 201 has a function of monitoring the USB interface 21 and realizing a USB communication protocol. The service provider 200 provides an API (API: Application Program Interface) when the image processing board of the monitoring camera 2 uses the function of the SIM1, and the packet data transmitted from the image processing board of the monitoring camera 2 is transmitted to the SIM1. It has a function of encrypting the encrypted packet data and returning the encrypted packet data to the image processing board of the monitoring camera 2.

サービスプロバイダ200は、本発明に係る通信量調整手段の機能を有し、SIM1へパケットデータを送信する際、小さなサイズのパケットデータから送信を始めて、徐々にパケットデータのサイズを大きくし、SIM1に送信するパケットデータの最適なサイズを調査し、最適なサイズでパケットデータをSIM1に送信する。   The service provider 200 has a function of a traffic volume adjusting unit according to the present invention. When transmitting packet data to the SIM 1, the service provider 200 starts transmission from a small size packet data, gradually increases the size of the packet data, The optimum size of the packet data to be transmitted is checked, and the packet data is transmitted to the SIM 1 with the optimum size.

サービスプロバイダ200が有する通信量調整手段の機能は、ICカード通信モジュールに実装されるCPLD(Complex Programmable Logic Device)に組み込まれ、通信量調整手段として機能するためのコンピュータプログラムで実現される。   The function of the traffic volume adjusting means possessed by the service provider 200 is implemented by a computer program that is incorporated in a CPLD (Complex Programmable Logic Device) mounted on the IC card communication module and functions as the traffic volume adjusting means.

図6は、ICカード通信モジュール20の動作の手順を示したフロー図である。この手順で実行される最初のステップS1は、パケットデータのサイズを調整するときに利用する変数を初期化するステップである。   FIG. 6 is a flowchart showing an operation procedure of the IC card communication module 20. The first step S1 executed in this procedure is a step of initializing variables used when adjusting the size of packet data.

このステップで、SIM1にパケットデータを送信するときの変数は、パケットサイズ、パケットサイズの下限値/上限値、最適パケットサイズ、最小通信時間、計測通信時間である。   In this step, the variables when transmitting packet data to the SIM 1 are the packet size, the lower limit value / upper limit value of the packet size, the optimum packet size, the minimum communication time, and the measured communication time.

パケットサイズとは、SIM1がデータモードに遷移しているとき、SIM1に送信するパケットデータのサイズが代入される変数で、ICカード通信モジュール20のサービスプロバイダ200は、SIM1にパケットデータを送信するとき、パケットサイズを下限値から始めて、徐々にパケットサイズの値を大きくしていき、パケットサイズを最適値に調整する。   The packet size is a variable in which the size of the packet data to be transmitted to the SIM 1 is substituted when the SIM 1 is in the data mode. When the service provider 200 of the IC card communication module 20 transmits the packet data to the SIM 1 Starting from the lower limit value of the packet size, the packet size is gradually increased to adjust the packet size to the optimum value.

計測通信時間は、パケットデータをSIM1に送信し暗号化したときに、SIM1との通信に要した時間、すなわち、パケットデータの送信に要した時間と、SIM1からパケットデータの暗号文を受信するのに要した時間の合計が代入される変数で、最小通信時間は、パケットデータのサイズを変更したときに、最も小さい計測通信時間が代入され、最も小さい計測通信時間ときのパケットサイズが最適パケットサイズに代入される。   The measurement communication time is the time required for communication with the SIM 1 when the packet data is transmitted to the SIM 1 and encrypted, that is, the time required for transmitting the packet data, and the ciphertext of the packet data is received from the SIM 1. The minimum communication time is substituted when the packet data size is changed, and the smallest measured communication time is substituted, and the packet size at the smallest measured communication time is the optimum packet size. Is assigned to

ここでは、パケットサイズの下限値は64バイト、上限値は1024バイトで、このステップでパケットサイズは下限値に設定される。また、最適パケットサイズの初期値を0バイトに設定され、最小通信時間は2の31乗に設定される。   Here, the lower limit value of the packet size is 64 bytes and the upper limit value is 1024 bytes. In this step, the packet size is set to the lower limit value. The initial value of the optimum packet size is set to 0 bytes, and the minimum communication time is set to 2 to the 31st power.

次のステップS2は、モード変更コマンド10をSIM1に送信するステップである。このステップで、ICカード通信モジュール20のサービスプロバイダ200は、SIM1に送信するパケットデータのサイズを最適値に調整するために、送信回数を10回、パケットのサイズをパケットサイズとしたモード変更コマンド10をSIM1に送信する。   The next step S2 is a step of transmitting the mode change command 10 to the SIM1. In this step, the service provider 200 of the IC card communication module 20 adjusts the size of the packet data to be transmitted to the SIM 1 to the optimum value, and the mode change command 10 with the number of transmissions being 10 times and the packet size being the packet size. To SIM1.

このステップで、ICカード通信モジュール20のサービスプロバイダ200がモード変更コマンド10を送信することで、SIM1のモードは、ISOモードからデータモードに遷移する。   In this step, when the service provider 200 of the IC card communication module 20 transmits the mode change command 10, the SIM1 mode changes from the ISO mode to the data mode.

次のステップS3は、パケットデータをSIM1に送信し、パケットデータを暗号化するステップである。このステップでは、ICカード通信モジュール20のサービスプロバイダ200は、計測通信時間を初期化した後、ステップS3のモード変更コマンド10で設定したサイズのパケットデータを、設定した送信回数(ここでは、10回)だけ送信し、データモードに遷移したSIM1にパケットデータを暗号化させる。   The next step S3 is a step of transmitting the packet data to the SIM 1 and encrypting the packet data. In this step, the service provider 200 of the IC card communication module 20 initializes the measured communication time, and then transmits the packet data having the size set by the mode change command 10 in step S3 to the set transmission count (here, 10 times). ) And the packet data is encrypted by the SIM 1 that has transitioned to the data mode.

このステップで、ICカード通信モジュール20のサービスプロバイダ200は、パケットデータをSIM1に送信するごとに、パケットデータの送信に費やした時間と、SIM1から送信されるパケットデータの暗号文の受信に費やした時間を計測通信時間に加算する。すなわち、このステップが実行された後の計測通信時間は、パケットデータを10回暗号化したときに費やした通信時間の合計となる。   In this step, the service provider 200 of the IC card communication module 20 spends time spent transmitting packet data and receiving ciphertext of packet data transmitted from the SIM 1 every time packet data is transmitted to the SIM 1. Add time to measured communication time. That is, the measured communication time after this step is executed is the total communication time spent when packet data is encrypted 10 times.

次のステップS4は、最小通信時間と計測通信時間を比較するステップである。このステップで、計測通信時間が最小通信時間よりも小さいときはステップS5に進み、計測通信時間が最小通信時間以上であるときは、ステップS6に進む。   The next step S4 is a step of comparing the minimum communication time with the measured communication time. In this step, when the measured communication time is smaller than the minimum communication time, the process proceeds to step S5. When the measured communication time is equal to or longer than the minimum communication time, the process proceeds to step S6.

ステップS5は、最小通信時間と最適パケットサイズの値を更新するステップで、このステップでは、ステップS3で得られた計測通信時間の値を最小通信時間に代入し、ステップS3で利用したパケットサイズの値を最適パケットサイズに代入する。このステップが実行された後は、ステップS6に進む。   Step S5 is a step of updating the value of the minimum communication time and the optimum packet size. In this step, the value of the measured communication time obtained in step S3 is substituted for the minimum communication time, and the packet size used in step S3 is changed. Substitute a value for the optimal packet size. After this step is executed, the process proceeds to step S6.

ステップS6は、パケットサイズを更新するステップである。このステップで、ICカード通信モジュール20のサービスプロバイダ200は、パケットサイズを徐々に大きくするために、パケットサイズに定数(ここでは、64バイト)を加算する。   Step S6 is a step of updating the packet size. In this step, the service provider 200 of the IC card communication module 20 adds a constant (here, 64 bytes) to the packet size in order to gradually increase the packet size.

次のステップS7は、パケットサイズの値とパケットサイズの上限値を比較するステップである。このステップで、パケットサイズの値がパケットサイズの上限値よりも小さければステップS2に戻り、それ以外であればステップS8に進む。   The next step S7 is a step of comparing the packet size value with the upper limit value of the packet size. In this step, if the packet size value is smaller than the upper limit value of the packet size, the process returns to step S2, and otherwise, the process proceeds to step S8.

ステップS8は、モード変更コマンド10をSIM1に送信するステップである。このステップで、ICカード通信モジュール20のサービスプロバイダ200は、データフィールドの送信回数を無制限、データフィールドのパケットデータのサイズを最適パケットサイズの値としたモード変更コマンド10をSIM1に送信する。   Step S8 is a step of transmitting the mode change command 10 to the SIM1. In this step, the service provider 200 of the IC card communication module 20 transmits to the SIM 1 a mode change command 10 in which the number of transmissions of the data field is unlimited and the size of the packet data in the data field is the value of the optimal packet size.

次のステップS9は、ICカード通信モジュール20のサービスプロバイダ200が、パケットデータをSIM1に送信し、パケットデータを暗号化するステップである。このステップでは、ICカード通信モジュール20のサービスプロバイダ200は、SIM1を非活性化するまで、最適パケットサイズのパケットデータをSIM1に送信し、データモードに遷移したSIM1にパケットデータを暗号化させる。   The next step S9 is a step in which the service provider 200 of the IC card communication module 20 transmits packet data to the SIM 1 and encrypts the packet data. In this step, the service provider 200 of the IC card communication module 20 transmits packet data of the optimum packet size to the SIM 1 until the SIM 1 is deactivated, and causes the SIM 1 that has transitioned to the data mode to encrypt the packet data.

なお、本発明は、これまで説明した実施の形態に限定されることなく、種々の変形や変更が可能であって、それらも本発明の均等の範囲内である。   The present invention is not limited to the embodiments described so far, and various modifications and changes can be made, and these are also within the equivalent scope of the present invention.

上述した実施の形態では、ICカード(SIM1)とやりとりする通信量を、コマンドヘッダを含まないパケットデータのサイズとしていたが、コマンドヘッダを含むコマンドAPDUとし、コマンドAPDUに含まれるデータのサイズを最適値に調整することもできる。   In the embodiment described above, the amount of communication with the IC card (SIM1) is the size of packet data that does not include a command header. However, the command APDU that includes the command header is used, and the size of the data included in the command APDU is optimal. It can also be adjusted to a value.

ICカード通信モジュールを組み込んだ監視カメラを説明する図。The figure explaining the surveillance camera incorporating an IC card communication module. SIMのモードを説明する図。The figure explaining the mode of SIM. モード変更コマンドのコマンドAPDUの一例を示した図。The figure which showed an example of command APDU of a mode change command. モード変更コマンドのレスポンスAPDUの一例を示した図。The figure which showed an example of the response APDU of a mode change command. ICカード通信モジュールを説明する図。The figure explaining an IC card communication module. ICカード通信モジュールの動作の手順を示したフロー図。The flowchart which showed the procedure of operation | movement of an IC card communication module.

符号の説明Explanation of symbols

1 SIM
10 モード変更コマンド
2 監視カメラ
20 ICカード通信モジュール
200 サービスプロバイダ
201 USBコントローラ
21 USBインターフェース
1 SIM
10 mode change command 2 surveillance camera 20 IC card communication module 200 service provider 201 USB controller 21 USB interface

Claims (3)

ICカードとUSBで通信する機器に組み込まれ、前記機器に装着される前記ICカードとの通信を制御するICカード通信モジュールであって、前記ICカード通信モジュールは、前記ICカードとやりとりする通信量を初期値から始めて、前記通信量に定数を加えることで前記通信量を大きくし、前記通信量を変更するごとに、前記ICカードと一定回数通信したときの通信時間を計測し、計測した前記通信時間が最も小さくなったときの前記通信量を最適値とする通信量調整手段を備えていることを特徴とするICカード通信モジュール。   An IC card communication module that is incorporated in a device that communicates with an IC card via USB and controls communication with the IC card that is mounted on the device, wherein the IC card communication module communicates with the IC card. Starting from the initial value, the communication amount is increased by adding a constant to the communication amount, and each time the communication amount is changed, the communication time when communicating with the IC card a certain number of times is measured, and the measured An IC card communication module, comprising: a communication amount adjusting unit that optimizes the communication amount when the communication time becomes the shortest. ICカードとUSBで通信するICカード通信方法であって、前記ICカード通信方法は、前記ICカードとやりとりする通信量を初期値から始めて、前記通信量に定数を加えることで前記通信量を大きくし、前記通信量を変更するごとに、前記ICカードと一定回数通信したときの通信時間を計測し、計測した前記通信時間が最も小さくなったときの前記通信量を最適値とする通信量調整工程を備えていることを特徴とするICカード通信方法。   An IC card communication method for communicating with an IC card via USB, wherein the IC card communication method starts from an initial value for the amount of communication with the IC card, and increases the amount of communication by adding a constant to the amount of communication. Then, each time the communication amount is changed, the communication time when the communication with the IC card is performed a certain number of times is measured, and the communication amount adjustment with the communication amount when the measured communication time becomes the smallest as the optimum value An IC card communication method comprising a step. ICカードとUSBで通信するコンピュータに組み込まれ、前記ICカードとの通信を制御するコンピュータプログラムであって、前記ICカードとやりとりする通信量を初期値から始めて、前記通信量に定数を加えることで前記通信量を大きくし、前記通信量を変更するごとに、前記ICカードと一定回数通信したときの通信時間を計測し、計測した前記通信時間が最も小さくなったときの前記通信量を最適値とする通信量調整手段として、前記機器を機能させるためのコンピュータプログラム。

A computer program that is incorporated in a computer that communicates with an IC card via USB and controls communication with the IC card, starting from an initial value for the amount of communication with the IC card, and adding a constant to the amount of communication Each time the communication amount is increased and the communication amount is changed, a communication time when communicating with the IC card a certain number of times is measured, and the communication amount when the measured communication time becomes the smallest is an optimum value. A computer program for causing the device to function as communication amount adjusting means.

JP2006320752A 2006-11-28 2006-11-28 IC card communication module, IC card communication method, and computer program Expired - Fee Related JP4957209B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006320752A JP4957209B2 (en) 2006-11-28 2006-11-28 IC card communication module, IC card communication method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006320752A JP4957209B2 (en) 2006-11-28 2006-11-28 IC card communication module, IC card communication method, and computer program

Publications (2)

Publication Number Publication Date
JP2008134846A JP2008134846A (en) 2008-06-12
JP4957209B2 true JP4957209B2 (en) 2012-06-20

Family

ID=39559661

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006320752A Expired - Fee Related JP4957209B2 (en) 2006-11-28 2006-11-28 IC card communication module, IC card communication method, and computer program

Country Status (1)

Country Link
JP (1) JP4957209B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5534969B2 (en) * 2010-06-17 2014-07-02 株式会社東芝 IC card, communication system, and communication method used for IC card
SG2014011308A (en) * 2014-02-11 2015-09-29 Smart Communications Inc Authentication system and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3820442B2 (en) * 2000-05-15 2006-09-13 株式会社神戸製鋼所 Wireless data communication method and apparatus
JP2002055785A (en) * 2000-08-14 2002-02-20 Canon Inc Picture forming device and packet selecting method
JP2004098313A (en) * 2002-09-05 2004-04-02 Seiko Epson Corp Printer having enhanced transfer efficiency of print data
JP2006287858A (en) * 2005-04-05 2006-10-19 Dainippon Printing Co Ltd Motion video distributing module, monitor camera having built-in motion video distributing module, and network monitor camera system

Also Published As

Publication number Publication date
JP2008134846A (en) 2008-06-12

Similar Documents

Publication Publication Date Title
TWI730941B (en) Apparatus and method for authenticating
JP2002329180A (en) Memory card having radio communication function and its data communication method
KR20080098640A (en) System for remotely accessing a mass storage unit and a security storage unit in a portable communicating object
KR20150011377A (en) Electronic authentication client system and processing method, and electronic authentication system and method
US9703968B2 (en) Mechanisms for controlling tag personalization
CN110620762A (en) RDMA (remote direct memory Access) -based data transmission method, network card, server and medium
JP5103803B2 (en) IC card with mode change function and IC card program
KR20230038418A (en) Personalization of security elements
JP4957209B2 (en) IC card communication module, IC card communication method, and computer program
US7657685B2 (en) Circuit arrangement and method for operating a circuit arrangement
JP4904966B2 (en) IC card with mode change function and IC card program
JP4840012B2 (en) IC card with mode change function and IC card program
EP3329704B1 (en) Improvements of subscriber identity module (sim) access profile (sap)
CA2705256A1 (en) Answer to reset (atr) pushing
US9767286B2 (en) Electronic module for making a message accessible to a targeted operating system
KR101503009B1 (en) Method and apparatus for identifying application based on data size
JP2020017857A (en) Communication device, data transmission method, and program
JP5848741B2 (en) Communication method between host and wireless internet access module, and host communication module
CN114449020B (en) Operation method of operation equipment based on control terminal, electronic equipment and storage medium
CN114202850B (en) Smart card payment method and device based on cloud data transmission
JP7006175B2 (en) Server equipment, terminal equipment, communication systems, communication methods, and programs
CN115278644B (en) eUICC downloading method suitable for off-line production
EP3202173B1 (en) Method of sending a data from a secure token to a server
KR101713320B1 (en) Method for End-To-End Exchanging Data between IC Chip and Server
KR102007505B1 (en) Method for Data Communication Between Terminals Using Code

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120208

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120305

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

Free format text: PAYMENT UNTIL: 20150330

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees