JP7192240B2 - MOBILE TERMINAL DEVICE, MOBILE TERMINAL CONTROL PROGRAM, AND MOBILE TERMINAL CONTROL METHOD - Google Patents

MOBILE TERMINAL DEVICE, MOBILE TERMINAL CONTROL PROGRAM, AND MOBILE TERMINAL CONTROL METHOD Download PDF

Info

Publication number
JP7192240B2
JP7192240B2 JP2018087306A JP2018087306A JP7192240B2 JP 7192240 B2 JP7192240 B2 JP 7192240B2 JP 2018087306 A JP2018087306 A JP 2018087306A JP 2018087306 A JP2018087306 A JP 2018087306A JP 7192240 B2 JP7192240 B2 JP 7192240B2
Authority
JP
Japan
Prior art keywords
contact
command
time
medium
fwt
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.)
Active
Application number
JP2018087306A
Other languages
Japanese (ja)
Other versions
JP2019192143A (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.)
Toppan Inc
Original Assignee
Toppan Inc
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 Toppan Inc filed Critical Toppan Inc
Priority to JP2018087306A priority Critical patent/JP7192240B2/en
Publication of JP2019192143A publication Critical patent/JP2019192143A/en
Application granted granted Critical
Publication of JP7192240B2 publication Critical patent/JP7192240B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Description

本発明は、移動端末装置、移動端末装置の制御プログラム、及び移動端末装置の制御方法に関する。 The present invention relates to a mobile terminal device, a mobile terminal device control program, and a mobile terminal device control method.

従来、リーダライタと非接触ICカードとの間のデータ等の送受信時には、リーダライタが、コマンドの送信時点からFWT(Frame Waiting Time)以内に非接触ICカードからレスポンスが受信されなかった場合に、非接触ICカードが無応答であると判定する。
また、非接触ICカードは、コマンドが指定する処理をFWT以内で完了できるかを判定し、完了できないと判定した場合には、S(WTX)をリーダライタに送信し、リーダライタにFWTを延長させる(例えば、非特許文献1、2、3参照。)。これにより、時間のかかるコマンドの処理中に、非接触ICカードが無応答であると判定されることを防止できる。
Conventionally, when sending and receiving data between a reader/writer and a contactless IC card, if the reader/writer does not receive a response from the contactless IC card within FWT (Frame Waiting Time) from the time of command transmission, It is determined that the contactless IC card does not respond.
Also, the contactless IC card determines whether the processing specified by the command can be completed within the FWT, and if it determines that it cannot be completed, it transmits S (WTX) to the reader/writer and extends the FWT to the reader/writer. (For example, see Non-Patent Documents 1, 2, and 3.). As a result, it is possible to prevent the non-contact IC card from being determined to be non-responsive during time-consuming command processing.

ところで、リーダライタに代えて、近距離無線通信が可能な移動端末装置を用い、移動端末装置と非接触ICカードとの間でデータ等の送受信を行わせることも考えられる。この場合、移動端末装置が、上記したFWTの判定に加え、コマンドの送信時点からタイムアウト時間以内に非接触ICカードからレスポンスの送信があったかの判定も行う。そして、タイムアウト時間以内に非接触ICカードからレスポンスの送信がなかったと判定した場合に、非接触ICカードが無応答であると判定する。ここで、タイムアウト時間は、一般に、電子マネーカードの残高の確認等、瞬時に処理が完了する用途を想定して短い時間に設定されている場合がある。それゆえ、例えば、非接触ICカードへのカード情報の書き込みコマンド等、時間のかかるコマンドの処理が行われ、非接触ICカードからのレスポンスの送信が遅くなると、非接触ICカードが無応答であると誤判定される可能性があった。 By the way, it is conceivable to use a mobile terminal device capable of short-distance wireless communication instead of the reader/writer, and transmit and receive data between the mobile terminal device and the non-contact IC card. In this case, in addition to the determination of the FWT described above, the mobile terminal device also determines whether or not a response has been transmitted from the non-contact IC card within the time-out period from when the command was transmitted. If it is determined that no response has been sent from the non-contact IC card within the timeout time, it is determined that the non-contact IC card has not responded. Here, the timeout period may generally be set to a short period of time assuming applications such as confirmation of the balance of an electronic money card, etc., in which processing is completed instantaneously. Therefore, for example, when a time-consuming command such as a command to write card information to a contactless IC card is processed and the transmission of a response from the contactless IC card is delayed, the contactless IC card does not respond. could have been misjudged.

日本電信電話株式会社、“技術基礎講座 非接触ICカード技術”、[online]、[平成30年3月24日検索]、インターネット(URL:http://www.ntt.co.jp/journal/0801/files/jn200801071.pdf)Nippon Telegraph and Telephone Corporation, "Technical Basic Course Non-Contact IC Card Technology", [online], [searched March 24, 2018], Internet (URL: http://www.ntt.co.jp/journal/ 0801/files/jn200801071.pdf) 国際標準化機構/国際電気標準会議、ISO/IEC 14443-3「Identification cards - Contactless integrated circuit(s) cards - Proximity cards -Part 3:Initialization and anticollision」International Organization for Standardization/International Electrotechnical Commission, ISO/IEC 14443-3 "Identification cards - Contactless integrated circuit(s) cards - Proximity cards -Part 3: Initialization and anticollision" 日本工業規格、JIS X6322-3「識別カード-非接触(外部端子なし)ICカード-近接型-第3部:初期化及び衝突防止」Japanese Industrial Standards, JIS X6322-3 "Identification card-Non-contact (without external terminals) IC card-Proximity type-Part 3: Initialization and anti-collision"

本発明は、上記のような点に着目し、非接触IC媒体が無応答であるかをより適切に判定可能な移動端末装置、移動端末装置の制御プログラム、及び移動端末装置の制御方法を提供することを目的とする。 The present invention focuses on the above points and provides a mobile terminal device, a control program for the mobile terminal device, and a control method for the mobile terminal device that can more appropriately determine whether or not the contactless IC medium is not responding. intended to

本発明の一態様は、(a)近距離無線通信を介して、非接触IC媒体にコマンドを送信するコマンド送信部と、(b)送信したコマンドへのレスポンスを、近距離無線通信を介して、非接触IC媒体から受信するレスポンス受信部と、(c)コマンドの送信時点からタイムアウト時間以内にコマンドへのレスポンスが受信されなかった場合に、非接触IC媒体が無応答であると判定する無応答判定部と、(d)予め定められた複数のコマンドのそれぞれに対応付けて、対応するコマンドを非接触IC媒体に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を、タイムアウト時間の候補を示す情報として記憶している記憶装置と、(e)移動端末装置と非接触IC媒体との通信路が設定された後の、毎回のコマンドの送信直前に、記憶装置から、送信されるコマンドに対応付けられている候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間を設定するタイムアウト時間設定部とを備える移動端末装置であることを要旨とする。 One aspect of the present invention includes (a) a command transmission unit that transmits a command to a non-contact IC medium via short-range wireless communication; and (c) a non-contact IC medium judging that the non-contact IC medium has not responded if no response to the command is received within the timeout time from the command transmission time. and (d) information associated with each of a plurality of predetermined commands and indicating a time longer than the expected processing time required when the corresponding command is processed by the non-contact IC medium. as information indicating candidates for the timeout period; and a timeout time setting unit that reads information indicating candidates associated with a command to be transmitted from the mobile terminal device and sets a timeout time based on the read information.

本発明の他の態様は、(a)近距離無線通信を介して、非接触IC媒体にコマンドを送信するコマンド送信部と、(b)送信したコマンドへのレスポンスを、近距離無線通信を介して、非接触IC媒体から受信するレスポンス受信部と、(c)コマンドの送信時点からタイムアウト時間以内にコマンドへのレスポンスが受信されなかった場合に、非接触IC媒体が無応答であると判定する無応答判定部と、(d)非接触IC媒体に処理させた場合に最も長い処理時間が予測されるコマンドの最も長い処理時間よりも長い時間を示す情報を、タイムアウト時間の候補を示す情報として記憶している記憶装置と、(e)移動端末装置と非接触IC媒体の通信路が設定された後の、最初のコマンドの送信直前に、記憶装置から候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間を設定するタイムアウト時間設定部とを備える移動端末装置であることを要旨とする。 Another aspect of the present invention includes (a) a command transmission unit that transmits a command to a non-contact IC medium via short-range wireless communication; and (c) determining that the non-contact IC medium has not responded if a response to the command is not received within the time-out period from the time the command was sent. and (d) information indicating a time longer than the longest processing time of the command that is expected to take the longest processing time when processed by a non-contact IC medium, as information indicating a candidate for the timeout time. (e) after the communication path between the mobile terminal device and the non-contact IC medium is set, the information indicating the candidate is read from the storage device immediately before the first command is sent, and the read information The gist of the invention is that the mobile terminal device includes a timeout time setting unit that sets a timeout time based on the above.

本発明の他の態様は、(a)近距離無線通信が可能な移動端末装置のプロセッサに、(b)近距離無線通信を介して、非接触IC媒体にコマンドを送信する送信機能、(c)送信したコマンドへのレスポンスを、近距離無線通信を介して、非接触IC媒体から受信する受信機能、(d)コマンドの送信時点からタイムアウト時間以内にコマンドへのレスポンスが受信されなかった場合に、非接触IC媒体が無応答であると判定する無応答判定機能、及び(e)移動端末装置と非接触IC媒体との通信路が設定された後の、毎回のコマンドの送信直前に、予め定められた複数のコマンドのそれぞれに対応付けて、対応するコマンドを非接触IC媒体に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を、タイムアウト時間の候補を示す情報として記憶している記憶装置から、送信されるコマンドに対応付けられている候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間を設定するタイムアウト時間設定機能を実現させる移動端末装置の制御プログラムであることを要旨とする。 Another aspect of the present invention includes (a) a processor of a mobile terminal device capable of short-range wireless communication, (b) a transmission function for sending a command to a non-contact IC medium via short-range wireless communication, (c) ) Receiving function to receive the response to the transmitted command from the non-contact IC medium via short-range wireless communication; , no-response judgment function for judging that the non-contact IC medium is non-response, and (e) a pre-programmed function immediately before each command transmission after the communication path between the mobile terminal device and the non-contact IC medium is set. Information indicating a time longer than the processing time expected to be required when the corresponding command is processed by a non-contact IC medium in association with each of the plurality of predetermined commands, and information indicating candidates for the timeout time. A control program for a mobile terminal device that realizes a timeout time setting function that reads information indicating candidates associated with a command to be transmitted from a storage device stored as a command and sets a timeout time based on the read information. The gist is that

本発明の他の態様は、(a)近距離無線通信が可能な移動端末装置のプロセッサに、(b)近距離無線通信を介して、非接触IC媒体にコマンドを送信する送信機能、(c)送信したコマンドへのレスポンスを、近距離無線通信を介して、非接触IC媒体から受信する受信機能、(d)コマンドの送信時点からタイムアウト時間以内にコマンドへのレスポンスが受信されなかった場合に、非接触IC媒体が無応答であると判定する無応答判定機能、及び(e)移動端末装置と非接触IC媒体との通信路が設定された後の、最初のコマンドの送信直前に、非接触IC媒体に処理させた場合に最も長い処理時間が予測されるコマンドの最も長い処理時間よりも長い時間を示す情報を、タイムアウト時間の候補を示す情報として記憶している記憶装置から、候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間を設定するタイムアウト時間設定機能を実現させる移動端末装置の制御プログラムであることを要旨とする。 Another aspect of the present invention includes (a) a processor of a mobile terminal device capable of short-range wireless communication, (b) a transmission function for sending a command to a non-contact IC medium via short-range wireless communication, (c) ) Receiving function to receive the response to the transmitted command from the non-contact IC medium via short-range wireless communication; , a no-response judgment function for judging that the non-contact IC medium is non-response; A candidate is selected from a storage device that stores information indicating a time longer than the longest processing time of a command that is expected to take the longest processing time when processed by a contact IC medium as information indicating a timeout time candidate. The gist of the present invention is a control program for a mobile terminal device that reads information indicating a timeout and implements a timeout time setting function for setting a timeout time based on the read information.

本発明の他の態様は、(a)近距離無線通信を介して、非接触IC媒体にコマンドを送信するステップと、(b)送信したコマンドへのレスポンスを、近距離無線通信を介して、非接触IC媒体から受信するステップと、(c)コマンドの送信時点からタイムアウト時間以内にコマンドへのレスポンスが受信されなかった場合に、非接触IC媒体が無応答であると判定するステップと、(d)移動端末装置と非接触IC媒体との通信路が設定された後の、毎回のコマンドの送信直前に、予め定められた複数のコマンドのそれぞれに対応付けて、対応するコマンドを非接触IC媒体に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を、タイムアウト時間の候補を示す情報として記憶している記憶装置から、送信されるコマンドに対応づけられている候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間を設定するステップとを含む移動端末装置の制御方法であることを要旨とする。 Another aspect of the present invention includes steps of (a) transmitting a command to a non-contact IC medium via short-range wireless communication; (b) transmitting a response to the transmitted command via short-range wireless communication; a step of receiving from the non-contact IC medium; d) After the communication path between the mobile terminal device and the non-contact IC medium is set, immediately before each command transmission, each of a plurality of predetermined commands is associated with each command, and the corresponding command is sent to the non-contact IC. Candidates associated with a command to be transmitted from a storage device that stores information indicating a processing time longer than a processing time expected to be required when the medium is processed as information indicating candidates for the timeout time. and setting a timeout period based on the read information.

本発明の他の態様は、(a)近距離無線通信を介して、非接触IC媒体にコマンドを送信するステップと、(b)送信したコマンドへのレスポンスを、近距離無線通信を介して、非接触IC媒体から受信するステップと、(c)コマンドの送信時点からタイムアウト時間以内にコマンドへのレスポンスが受信されなかった場合に、非接触IC媒体が無応答であると判定するステップと、(d)移動端末装置と非接触IC媒体との通信路が設定された後の、最初のコマンドの送信直前に、非接触IC媒体に処理させた場合に最も長い処理時間が予測されるコマンドの最も長い処理時間よりも長い時間を示す情報を、タイムアウト時間の候補を示す情報として記憶している記憶装置から、候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間を設定するステップとを含む移動端末装置の制御方法であることを要旨とする。 Another aspect of the present invention includes steps of (a) transmitting a command to a non-contact IC medium via short-range wireless communication; (b) transmitting a response to the transmitted command via short-range wireless communication; a step of receiving from the non-contact IC medium; d) Immediately before sending the first command after the communication path between the mobile terminal device and the non-contact IC medium is set, the command that is expected to take the longest processing time if processed by the non-contact IC medium and reading information indicating a candidate for a timeout period from a storage device storing information indicating a period longer than the long processing period as information indicating a candidate for the timeout period, and setting the timeout period based on the read information. The gist of the present invention is a control method for a mobile terminal device.

本発明によれば、例えば、処理に時間がかかるコマンドを送信する際に、タイムアウト時間を長くすることができ、非接触IC媒体からのレスポンスの送信が遅くなっても、非接触IC媒体が無応答であると誤判定されずに済む。そのため、非接触IC媒体が無応答であるかをより適切に判定可能な移動端末装置、移動端末装置の制御プログラム、及び移動端末装置の制御方法を提供することができる。 According to the present invention, for example, when a command that takes a long time to process is transmitted, the time-out period can be lengthened. It can be prevented from being erroneously determined to be a response. Therefore, it is possible to provide a mobile terminal device, a control program for a mobile terminal device, and a control method for a mobile terminal device, which can more appropriately determine whether the contactless IC medium is non-responsive.

本発明の実施形態に係るICカード発行システムを示す概念図である。1 is a conceptual diagram showing an IC card issuing system according to an embodiment of the present invention; FIG. タイムアウト時間を説明するための説明図である。FIG. 10 is an explanatory diagram for explaining a timeout period; FIG. コマンドと重み付け係数とを対応付けるテーブルを示す図である。FIG. 10 is a diagram showing a table that associates commands with weighting coefficients; ICカード発行処理を示すフローチャートである。4 is a flowchart showing IC card issuing processing; ICカード発行システムの動作を示すシーケンス図である。4 is a sequence diagram showing the operation of the IC card issuing system; FIG. 変形例に係るテーブルを示す図である。It is a figure which shows the table which concerns on a modification. 変形例に係るICカード発行システムの動作を示すシーケンス図である。FIG. 11 is a sequence diagram showing the operation of the IC card issuing system according to the modified example; 変形例に係るICカード発行処理を示すフローチャートである。It is a flow chart which shows IC card issue processing concerning a modification. 変形例に係るテーブルを示す図である。It is a figure which shows the table which concerns on a modification.

以下、本発明の実施形態に係る移動端末装置、移動端末装置の制御プログラム、及び移動端末装置の制御方法について図面を参照しつつ説明する。後述するように、本発明の実施形態に係る移動端末装置は、SP(Service Provider)サーバからカード情報を取得し、取得したカード情報を非接触ICカード(広義には、「非接触IC媒体」)に書き込むICカード発行システムを構成する。なお、以下に示す実施形態は、本発明の技術的思想を具体化するための方法や装置を例示するものであって、本発明の技術的思想は、構成部品の形状、構造、配置等を下記のものに特定するものでない。本発明の技術的思想は、請求の範囲に記載された請求項が規定する技術的範囲内で、種々の変更を加えることができる。 Hereinafter, a mobile terminal device, a mobile terminal device control program, and a mobile terminal device control method according to embodiments of the present invention will be described with reference to the drawings. As will be described later, the mobile terminal device according to the embodiment of the present invention acquires card information from an SP (Service Provider) server, and stores the acquired card information in a non-contact IC card (broadly speaking, "non-contact IC medium"). ) to configure an IC card issuing system. The embodiments shown below are examples of methods and apparatuses for embodying the technical idea of the present invention. It is not specific to the following. Various modifications can be made to the technical idea of the present invention within the technical scope defined by the claims.

(構成)
図1に示すように、ICカード発行システム1は、移動端末装置2と、非接触ICカード3と、SPサーバ4とを備えている。移動端末装置2及びSPサーバ4は、携帯電話通信網、インターネット等を用いて、互いに情報を送受信可能な通信路を確立している。
(composition)
As shown in FIG. 1, the IC card issuing system 1 includes a mobile terminal device 2, a contactless IC card 3, and an SP server 4. The mobile terminal device 2 and the SP server 4 establish a communication path through which information can be transmitted and received between them using a mobile phone communication network, the Internet, or the like.

(移動端末装置)
移動端末装置2は、非接触ICカード3の発行を行うカード発行者が所有している端末装置である。移動端末装置2としては、例えば、アプリの実行や移動体通信、NFC(Near Field Communication)規格の近距離無線通信等が可能なスマートフォンを採用できる。移動端末装置2は、NFCアンテナ5、NFCコントローラ6、記憶装置7及びプロセッサ8等のハードウェア資源を備えている。
NFCアンテナ5は、非接触ICカード3が出力する電磁界から電流を発生し、発生した電流、つまりデータ等が変調された電流をNFCコントローラ6に出力する。また、NFCアンテナ5は、NFCコントローラ6が出力する電流、つまりデータ等が変調された電流から電磁界を発生し、発生した電磁界で非接触ICカード3にデータ等を送信する。
(Mobile terminal device)
The mobile terminal device 2 is owned by a card issuer who issues the contactless IC card 3 . As the mobile terminal device 2, for example, a smart phone capable of executing an application, mobile communication, short-range wireless communication based on the NFC (Near Field Communication) standard, and the like can be adopted. The mobile terminal device 2 includes hardware resources such as an NFC antenna 5, an NFC controller 6, a storage device 7 and a processor 8.
The NFC antenna 5 generates a current from the electromagnetic field output by the non-contact IC card 3 and outputs the generated current, that is, the current modulated with data or the like to the NFC controller 6 . Also, the NFC antenna 5 generates an electromagnetic field from the current output by the NFC controller 6, that is, the current modulated with data and the like, and transmits data and the like to the non-contact IC card 3 with the generated electromagnetic field.

NFCコントローラ6は、NFCアンテナ5が出力する電流に変調されたデータ等をプロセッサ8に送信する。またNFCコントローラ6は、プロセッサ8が出力するデータ等を変調した電流をNFCアンテナ5に出力する。これにより、電磁界による近距離無線通信を介して、コマンドやレスポンス等を非接触ICカード3と送受信可能となっている。
また、NFCコントローラ6は、NFCアンテナ5が出力する電流にFWT延長要求が変調されているかを判定し、FWT延長要求が変調されていると判定した場合には、FWT延長応答を変調した電流をNFCアンテナ5に出力する。これにより、電磁界による近距離無線通信を介して、FWT延長応答を非接触ICカード3に送信可能となっている。
The NFC controller 6 transmits to the processor 8 data and the like modulated by the current output by the NFC antenna 5 . The NFC controller 6 also outputs to the NFC antenna 5 a current obtained by modulating the data output by the processor 8 . As a result, commands, responses, and the like can be transmitted and received to and from the non-contact IC card 3 via short-range wireless communication using electromagnetic fields.
Further, the NFC controller 6 determines whether the FWT extension request is modulated in the current output by the NFC antenna 5, and if it determines that the FWT extension request is modulated, the current obtained by modulating the FWT extension response. Output to the NFC antenna 5 . As a result, the FWT extension response can be transmitted to the non-contact IC card 3 via short-range wireless communication using an electromagnetic field.

記憶装置7は、プロセッサ8が書き込んだデータ等を記憶するようになっている。また、記憶装置7は、予め定められたタイムアウト時間Toutの規定値(デフォルト値)を記憶している。タイムアウト時間Toutとは、図2に示すように、コマンドの送信後に、コマンドへのレスポンスが返されるのを待つ最大時間である。これにより、コマンドの送信時点から、タイムアウト時間Tout以内に、非接触ICカード3からのレスポンスが受信されなかった場合に、非接触ICカード3が無応答であると判定可能となっている。タイムアウト時間Toutの規定値としては、例えば、300msを用いることができる。 The storage device 7 stores data written by the processor 8 and the like. Further, the storage device 7 stores a prescribed value (default value) of a predetermined timeout period Tout. The timeout time Tout, as shown in FIG. 2, is the maximum time to wait for a response to a command after transmission of the command. As a result, if no response is received from the non-contact IC card 3 within the timeout time Tout from when the command was sent, it can be determined that the non-contact IC card 3 has not responded. For example, 300 ms can be used as the specified value of the timeout time Tout.

さらに、記憶装置7は、図3に示すように、予め定められた複数のコマンドと、それら複数のコマンドそれぞれに対応づけられたタイムアウト時間Toutの候補を示す情報とを登録したテーブル9を記憶している。タイムアウト時間Toutの候補を示す情報としては、対応するコマンドを非接触ICカード3に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を用いることができる。例えば、下記(1)式に示すように、タイムアウト時間Toutの規定値(300ms)に乗算することでタイムアウト時間Toutを算出することが可能な重み付け係数(0.5、1、2、3等)を採用できる。
タイムアウト時間Tout=タイムアウト時間Toutの規定値×重み付け係数 …(1)
Further, as shown in FIG. 3, the storage device 7 stores a table 9 in which a plurality of predetermined commands and information indicating candidates for the timeout period Tout associated with each of the plurality of commands are registered. ing. Information indicating a candidate for the timeout time Tout may be information indicating a time longer than the processing time expected to be required when the corresponding command is processed by the non-contact IC card 3 . For example, as shown in the following formula (1), a weighting factor (0.5, 1, 2, 3, etc.) that can calculate the timeout time Tout by multiplying the specified value (300 ms) of the timeout time Tout can be adopted.
Timeout time Tout=Specified value of timeout time Tout×Weighting factor (1)

図3のテーブル9では、「READ BINARY」「READ RECORD(S)」「GET CHALLENGE」等のREAD系のコマンドの重み付け係数を「1」とした。また、「INTERNAL AUTHENTICATE」「EXTERNAL AUTHENTICATE」等の認証系のコマンドの重み付け係数を「2」とした。また、「WRITE BINARY」「UPDATE BINARY」「WRITE RECORD」「APPEND RECORD」「UPDATE RECORD」等のWRITE系のコマンドの重み付け係数を「3」とした。また、「SELECT FILE」「VERIFY」等のSELECT系のコマンドの重み付け係数を「0.5」とした。すなわち、非接触ICカード3に処理させた場合に最も長い処理時間が予測されるコマンドとして、WRITE系のコマンドに最大の重み付け係数「3」を対応付けている。また非接触ICカード3に処理させた場合に最も短い処理時間が予測されるコマンドとして、SELECT系のコマンドに「1」よりも小さい最小の重み付け係数「0.5」を対応付けている。 In Table 9 of FIG. 3, the weighting coefficients of READ commands such as "READ BINARY", "READ RECORD(S)", and "GET CHALLENGE" are set to "1". Also, the weighting factor of the authentication system commands such as "INTERNAL AUTHENTICATE" and "EXTERNAL AUTHENTICATE" is set to "2". Also, the weighting coefficient of WRITE commands such as "WRITE BINARY", "UPDATE BINARY", "WRITE RECORD", "APPEND RECORD", and "UPDATE RECORD" is set to "3". Also, the weighting coefficient of SELECT commands such as "SELECT FILE" and "VERIFY" is set to "0.5". That is, as a command expected to take the longest processing time when processed by the contactless IC card 3, the WRITE command is associated with the maximum weighting coefficient "3". Also, as a command for which the shortest processing time is expected when processed by the non-contact IC card 3, the SELECT command is associated with the minimum weighting coefficient "0.5" smaller than "1".

さらに、記憶装置7は、プロセッサ8が実行する移動端末装置2の制御プログラムを記憶している。また、記憶装置7は制御プログラムの実行に必要な各種データを記憶する。
プロセッサ8は、カード発行者による移動端末装置2へのカード発行用UIアプリの起動操作が検出されると、カード発行用UIアプリ用の制御プログラムを、記憶装置7から読み出して実行し、カード情報取得部10、リクエスト送信部11、FWT値取得部12、タイムアウト時間設定部13、コマンド送信部14、レスポンス受信部15、無応答判定部16、コマンド判定部17等を実現する。カード情報取得部10、リクエスト送信部11、FWT値取得部12、タイムアウト時間設定部13、コマンド送信部14、レスポンス受信部15、無応答判定部16、コマンド判定部17等は、ICカード発行処理を実行して、NFCアンテナ5、NFCコントローラ6及び記憶装置7等のハードウェア資源を制御する。ICカード発行処理の詳細については後述する。
Further, the storage device 7 stores a control program for the mobile terminal device 2 executed by the processor 8 . Further, the storage device 7 stores various data necessary for executing the control program.
When the card issuer's activation operation of the UI application for card issuance to the mobile terminal device 2 is detected, the processor 8 reads out the control program for the UI application for card issuance from the storage device 7 and executes it to obtain the card information. Acquisition unit 10, request transmission unit 11, FWT value acquisition unit 12, timeout time setting unit 13, command transmission unit 14, response reception unit 15, non-response determination unit 16, command determination unit 17, etc. are implemented. The card information acquisition unit 10, the request transmission unit 11, the FWT value acquisition unit 12, the timeout time setting unit 13, the command transmission unit 14, the response reception unit 15, the no-response determination unit 16, the command determination unit 17, etc. perform IC card issuance processing. to control hardware resources such as the NFC antenna 5 , the NFC controller 6 and the storage device 7 . The details of the IC card issuing process will be described later.

(非接触ICカード)
非接触ICカード3は、発行対象となるICカードである。例えば、電磁界による近距離無線通信が可能なICカードを採用できる。非接触ICカード3は、NFCアンテナ18と、NFCコントローラ19と、記憶装置20と、プロセッサ21とを備えている。
NFCアンテナ18は、移動端末装置2が出力する電磁界から電流を発生し、発生した電流、つまりデータ等が変調された電流をNFCコントローラ19に出力する。また、NFCアンテナ18は、NFCコントローラ19が出力する電流、つまりデータ等が変調された電流から電磁界を発生し、発生した電磁界で移動端末装置2にデータ等を送信する。
(contactless IC card)
The contactless IC card 3 is an IC card to be issued. For example, an IC card capable of short-range wireless communication using an electromagnetic field can be used. The contactless IC card 3 has an NFC antenna 18 , an NFC controller 19 , a storage device 20 and a processor 21 .
The NFC antenna 18 generates current from the electromagnetic field output by the mobile terminal device 2 and outputs the generated current, that is, current modulated with data or the like to the NFC controller 19 . Further, the NFC antenna 18 generates an electromagnetic field from the current output by the NFC controller 19, that is, the current modulated with data and the like, and transmits data and the like to the mobile terminal device 2 with the generated electromagnetic field.

NFCコントローラ19は、NFCアンテナ18が出力する電流に変調されたデータ等をプロセッサ21に出力する。また、NFCコントローラ19は、プロセッサ21が出力するデータ等を変調した電流をNFCアンテナ18に出力する。これにより、近距離無線通信を介して、コマンドやレスポンス等を移動端末装置2と送受信可能となっている。
記憶装置20は、プロセッサ21が書き込んだデータ等を記憶するようになっている。
プロセッサ21は、FWT値送信部22、コマンド処理部23等のハードウェア資源を物理的に備えている。図1では、FWT値送信部22、コマンド処理部23等は、論理的な機能に着目したハードウェア資源を形式的に表現している。図1の表現は、必ずしも半導体チップ上に物理的な領域として存在する機能ブロックを意味するものではない。
The NFC controller 19 outputs to the processor 21 data or the like modulated by the current output by the NFC antenna 18 . Also, the NFC controller 19 outputs to the NFC antenna 18 a current obtained by modulating data output from the processor 21 . As a result, it is possible to transmit and receive commands, responses, and the like to and from the mobile terminal device 2 via short-range wireless communication.
The storage device 20 stores data written by the processor 21 and the like.
The processor 21 physically includes hardware resources such as an FWT value transmission unit 22 and a command processing unit 23 . In FIG. 1, the FWT value transmission unit 22, the command processing unit 23, and the like formally express hardware resources focused on logical functions. The representation in FIG. 1 does not necessarily imply functional blocks that exist as physical areas on a semiconductor chip.

FWT値送信部22は、移動端末装置2からリクエストが送信されると、送信されてきたリクエストを受信し、移動端末装置2に予め定められたFWT値の規定値を送信する。
コマンド処理部23は、移動端末装置2からコマンドが送信されると、送信されてきたコマンドを受信し、受信したコマンドが示すコマンド処理を、FWT値の規定値内で完了できるかを判定する。そして、FWT値の規定値内で完了できると判定した場合には、コマンド処理を実行する。一方、FWT値の規定値内で完了できないと判定した場合には、FWT延長要求を移動端末装置2に送信し、送信したFWT延長要求に対して、移動端末装置2からFWT延長応答が返されると、コマンド処理を実行する。コマンド処理が完了すると、コマンド処理部23は、移動端末装置2にレスポンスを送信する。
When a request is transmitted from the mobile terminal device 2 , the FWT value transmission unit 22 receives the transmitted request and transmits a predetermined FWT value to the mobile terminal device 2 .
When a command is transmitted from the mobile terminal device 2, the command processing unit 23 receives the transmitted command and determines whether the command processing indicated by the received command can be completed within the specified FWT value. Then, when it is determined that the FWT value can be completed within the specified value, the command processing is executed. On the other hand, if it is determined that the FWT value cannot be completed within the specified value, an FWT extension request is transmitted to the mobile terminal device 2, and an FWT extension response is returned from the mobile terminal device 2 in response to the transmitted FWT extension request. and execute command processing. When command processing is completed, command processing unit 23 transmits a response to mobile terminal device 2 .

(SPサーバ)
SPサーバ4は、サービスプロバイダ(SP)が運営するサーバである。SPサーバ4は、カード情報記憶装置24と、プロセッサ25とを備えている。
カード情報記憶装置24は、カード情報を記憶している。カード情報としては、カード所持者に割り当てるID等、非接触ICカード3の発行に必要な各種情報を採用できる。
プロセッサ25は、移動端末装置2からカード情報の送信要求が送信されると、カード情報記憶装置24が記憶しているカード情報(ID等)を移動端末装置2に送信する。
(SP server)
The SP server 4 is a server operated by a service provider (SP). The SP server 4 has a card information storage device 24 and a processor 25 .
The card information storage device 24 stores card information. As the card information, various information necessary for issuing the contactless IC card 3, such as an ID assigned to the card holder, can be adopted.
The processor 25 transmits the card information (ID etc.) stored in the card information storage device 24 to the mobile terminal device 2 when the mobile terminal device 2 transmits a request for transmission of the card information.

(ICカード発行処理)
次に、カード情報取得部10、リクエスト送信部11、FWT値取得部12、タイムアウト時間設定部13、コマンド送信部14、無応答判定部16、コマンド判定部17等が実行するICカード発行処理について説明する。ICカード発行処理は、カード発行者が移動端末装置2を操作して、カード発行用UIアプリが起動されると実行される。
図4に示すようにステップS101では、カード情報取得部10が、カード情報の送信要求をSPサーバ4に送信する。これにより、SPサーバ4にカード情報を送信させる。
(IC card issuing process)
Next, the IC card issuing process executed by the card information acquisition unit 10, the request transmission unit 11, the FWT value acquisition unit 12, the timeout time setting unit 13, the command transmission unit 14, the no-response determination unit 16, the command determination unit 17, etc. explain. The IC card issuance process is executed when the card issuer operates the mobile terminal device 2 to activate the UI application for card issuance.
As shown in FIG. 4, in step S101, the card information acquisition unit 10 transmits a request for transmission of card information to the SP server 4. FIG. This causes the SP server 4 to transmit the card information.

続いてステップS102に移行して、カード情報取得部10が、SPサーバ4が送信してきたカード情報を受信し、受信したカード情報を記憶装置7に書き込む。
続いてステップS103に移行して、リクエスト送信部11が、NFCアンテナ5及びNFCコントローラ6を介して、近距離無線通信により、非接触ICカード3にリクエストコマンドを送信する。リクエストコマンドは、移動端末装置2と非接触ICカード3との通信路を設定する初期応答のコマンドである。これにより、初期応答を開始する。
続いてステップS104に移行して、FWT値取得部12が、NFCアンテナ5及びNFCコントローラ6を介して、近距離無線通信により、非接触ICカード3から送信されてくるデフォルトのFWT値を受信し、受信したFWT値を記憶装置7に書き込む。
Subsequently, in step S102, the card information acquisition unit 10 receives the card information transmitted by the SP server 4 and writes the received card information into the storage device 7. FIG.
Subsequently, in step S103, the request transmission unit 11 transmits a request command to the non-contact IC card 3 via the NFC antenna 5 and the NFC controller 6 by short-range wireless communication. A request command is an initial response command for setting a communication path between the mobile terminal device 2 and the non-contact IC card 3 . This initiates an initial response.
Subsequently, in step S104, the FWT value acquisition unit 12 receives the default FWT value transmitted from the non-contact IC card 3 via the NFC antenna 5 and the NFC controller 6 by short-range wireless communication. , writes the received FWT value to the storage device 7 .

続いてステップS105に移行して、タイムアウト時間設定部13が、記憶装置7からタイムアウト時間Toutの規定値を読み出す。続いて、ISO14443-3準拠の初期応答処理の残りの処理を行う。初期応答処理の完了により、自装置(移動端末装置2)と非接触ICカード3との通信路が設定され、初期応答処理を終了して、移動端末装置2と非接触ICカード3との間でコマンドやレスポンスをやり取りする活性状態を開始する。
続いてステップS106に移行して、タイムアウト時間設定部13が、記憶装置7が記憶している図3に示したテーブル9から、次に送信するコマンドに対応付けられている重み付け係数を読み出す。続いて、上記(1)式に従って、読み出した重み付け係数を、ステップS105で読み出したタイムアウト時間Toutの規定値に乗算し、乗算結果をタイムアウト時間Toutとして記憶装置7に書き込む。すなわち、ICカード発行処理のステップS106がプロセッサ8にタイムアウト時間設定機能を実現させる。ICカード発行処理の開始後、タイムアウト時間Toutの設定が1回以上行われている場合には、既に書き込まれているタイムアウト時間Toutに新しいタイムアウト時間Toutを上書きする。
Subsequently, in step S105, the timeout time setting unit 13 reads the specified value of the timeout time Tout from the storage device 7. FIG. Subsequently, the rest of the initial response processing conforming to ISO14443-3 is performed. Upon completion of the initial response processing, a communication path between the mobile terminal device 2 and the non-contact IC card 3 is set, the initial response processing ends, and the communication between the mobile terminal device 2 and the non-contact IC card 3 is completed. to start an active state for exchanging commands and responses.
Subsequently, in step S106, the timeout time setting unit 13 reads the weighting factor associated with the command to be transmitted next from the table 9 shown in FIG. Subsequently, according to the above equation (1), the read weighting coefficient is multiplied by the specified value of the timeout time Tout read in step S105, and the multiplication result is written in the storage device 7 as the timeout time Tout. That is, step S106 of the IC card issuing process causes the processor 8 to realize the timeout time setting function. If the timeout period Tout has been set once or more after the start of the IC card issuing process, the already written timeout period Tout is overwritten with a new timeout period Tout.

なお、タイムアウト時間設定部13において、記憶装置7が記憶している図3に示したテーブル9のうちに、次に送信されるコマンドに対応付けられた重み付け係数がないと判定した場合には、記憶装置7が記憶している最長のタイムアウト時間Toutの候補を示す情報、つまり、重み付け係数「3」に基づき、タイムアウト時間Toutを設定する。
続いてステップS107に移行して、コマンド送信部14が、NFCアンテナ5及びNFCコントローラ6を介して、近距離無線通信により、NFCアンテナ5の通信範囲内に存在する非接触ICカード3にコマンドを送信する。すなわち、ICカード発行処理のステップS107が、プロセッサ8に送信機能を実現させる。これにより、非接触ICカード3にコマンドが指定する処理を行わせ、非接触ICカード3にレスポンスを返させる。
このステップS107は、ICカード発行処理中に繰り返し実行され、ステップS102で記憶装置7に書き込んだカード情報を非接触ICカード3の記憶装置20に書き込んで非接触ICカード3を発行するための各種コマンドを順次出力するようになっている。
If the timeout time setting unit 13 determines that there is no weighting factor associated with the command to be transmitted next in the table 9 shown in FIG. 3 stored in the storage device 7, The timeout time Tout is set based on the information indicating the candidate for the longest timeout time Tout stored in the storage device 7, that is, based on the weighting factor "3".
Subsequently, in step S107, the command transmission unit 14 transmits a command to the non-contact IC card 3 existing within the communication range of the NFC antenna 5 via the NFC antenna 5 and the NFC controller 6 by short-range wireless communication. Send. That is, step S107 of the IC card issuing process causes the processor 8 to realize the transmission function. As a result, the non-contact IC card 3 is caused to perform the processing specified by the command, and the non-contact IC card 3 is caused to return a response.
This step S107 is repeatedly executed during the IC card issuing process, and the card information written in the storage device 7 in step S102 is written in the storage device 20 of the non-contact IC card 3 to issue the non-contact IC card 3. Commands are output sequentially.

続いてステップS108に移行して、レスポンス受信部15が、非接触ICカード3が送信してきたレスポンスを受信する。このステップS108の実行中、無応答判定部16が、コマンド送信部14によるコマンドの送信時点から、ステップS106で記憶装置7に書き込んだタイムアウト時間以内に、レスポンスが受信されたかを判定する。そして、タイムアウト時間以内にレスポンスが受信されなかったと判定した場合には、非接触ICカード3が無応答であると判定し、タイムアウト処理を行う。タイムアウト処理としては、例えば、移動端末装置2と非接触ICカード3との間でコマンドやレスポンスのやり取りを行わない不活性状態とするための処理を採用できる。すなわち、ICカード発行処理のステップS108が、プロセッサ8に受信機能と無応答判定機能とを実現させる。
ステップS109では、コマンド判定部17が、次に送信するコマンドがあるかを判定する。そして、コマンドがあると判定した場合には(Yes)、ステップS106に戻る。一方、コマンドがないと判定した場合には(No)、ICカード発行処理を終了する。
Subsequently, the process proceeds to step S108, and the response receiving section 15 receives the response transmitted by the non-contact IC card 3. FIG. During execution of this step S108, the no-response determination unit 16 determines whether a response has been received within the timeout period written in the storage device 7 in step S106 from the time when the command transmission unit 14 transmitted the command. When it is determined that no response has been received within the time-out period, it is determined that the non-contact IC card 3 has not responded, and time-out processing is performed. As the timeout process, for example, a process for making the mobile terminal device 2 and the non-contact IC card 3 in an inactive state in which commands and responses are not exchanged can be adopted. That is, step S108 of the IC card issuing process causes the processor 8 to implement the reception function and the no-response determination function.
In step S109, the command determination unit 17 determines whether there is a command to be transmitted next. If it is determined that there is a command (Yes), the process returns to step S106. On the other hand, if it is determined that there is no command (No), the IC card issuing process is terminated.

(動作その他)
次に、本実施形態のICカード発行システム1の動作を説明する。
まず、カード発行者が、移動端末装置2を操作し、図5に示すように、移動端末装置2が、カード情報の送信要求をSPサーバ4に送信したとする(ステップS201)。すると、SPサーバ4が、送信されてきた送信要求を受信し(ステップS202)、送信元の移動端末装置2に、非接触ICカード3の発行手続きにおいて、非接触ICカード3に記憶させるカード情報を送信する(ステップS203)。続いて、移動端末装置2が、送信されてきたカード情報を受信して、記憶装置7に記憶させる(ステップS204)。
(Other operations)
Next, the operation of the IC card issuing system 1 of this embodiment will be described.
First, it is assumed that the card issuer operates the mobile terminal device 2 and the mobile terminal device 2 transmits a card information transmission request to the SP server 4 as shown in FIG. 5 (step S201). Then, the SP server 4 receives the transmitted transmission request (step S202), and sends the mobile terminal device 2 of the transmission source the card information to be stored in the non-contact IC card 3 in the non-contact IC card 3 issuing procedure. is transmitted (step S203). Subsequently, the mobile terminal device 2 receives the transmitted card information and stores it in the storage device 7 (step S204).

続いて、移動端末装置2が、近距離無線通信を介して、移動端末装置2のNFCアンテナ5の通信範囲内の非接触ICカード3に、リクエストコマンドを送信する(ステップS205)。これにより、ISO14443-3準拠の初期応答を開始する。続いて、非接触ICカード3が、送信されてきたリクエストを受信し(ステップS206)、送信元の移動端末装置2にFWT規定値を送信する(ステップS207)。続いて、移動端末装置2が、送信されてきたFWT規定値を受信し(ステップS208)、記憶装置7からタイムアウト時間Toutの規定値を読み出す(ステップS209)。続いて、初期応答処理の残りを完了し、移動端末装置2と非接触ICカード3との通信路を設定した後、移動端末装置2と非接触ICカード3との間でコマンド等をやり取りする活性状態を開始する。 Subsequently, the mobile terminal device 2 transmits a request command to the non-contact IC card 3 within the communication range of the NFC antenna 5 of the mobile terminal device 2 via near field communication (step S205). This initiates an initial response conforming to ISO14443-3. Subsequently, the non-contact IC card 3 receives the transmitted request (step S206), and transmits the FWT specified value to the mobile terminal device 2 of the transmission source (step S207). Subsequently, the mobile terminal device 2 receives the transmitted FWT specified value (step S208), and reads out the specified value of the timeout time Tout from the storage device 7 (step S209). Subsequently, after completing the rest of the initial response processing and setting a communication path between the mobile terminal device 2 and the non-contact IC card 3, commands and the like are exchanged between the mobile terminal device 2 and the non-contact IC card 3. Start active state.

続いて、移動端末装置2が、記憶装置7が記憶している図3に示したテーブル9から、次に送信するコマンドに対応付けられている重み付け係数を読み出し、上記(1)式に従い、読み出した重み付け係数をタイムアウト時間Toutの規定値に乗算し、乗算結果をタイムアウト時間Toutとして記憶装置7に記憶させる(ステップS210)。タイムアウト時間Toutの記憶が完了すると、移動端末装置2が、近距離無線通信を介して非接触ICカード3にコマンドを送信する(ステップS211)。続いて、非接触ICカード3が、送信されてきたコマンドを受信し(ステップS212)、受信したコマンドが指定する処理、つまりコマンド処理を実行する(ステップS213)。コマンド処理が完了すると、移動端末装置2が、移動端末装置2にレスポンスを送信し(ステップS214)、移動端末装置2が、送信されてきたレスポンスを受信する(ステップS215)。タイムアウト時間Toutが適切な値となるため、コマンドの送信時点からタイムアウト時間Tout以内にレスポンスが受信され、非接触ICカード3が無応答であると誤判定されずに済む。 Subsequently, the mobile terminal device 2 reads the weighting coefficient associated with the command to be transmitted next from the table 9 shown in FIG. The predetermined value of the timeout time Tout is multiplied by the weighting coefficient obtained, and the multiplication result is stored in the storage device 7 as the timeout time Tout (step S210). When the storage of the timeout time Tout is completed, the mobile terminal device 2 transmits a command to the non-contact IC card 3 via short-range wireless communication (step S211). Subsequently, the non-contact IC card 3 receives the transmitted command (step S212), and executes the processing specified by the received command, that is, the command processing (step S213). When the command processing is completed, the mobile terminal device 2 transmits a response to the mobile terminal device 2 (step S214), and the mobile terminal device 2 receives the transmitted response (step S215). Since the timeout time Tout has an appropriate value, the response is received within the timeout time Tout from the time the command is sent, and the non-contact IC card 3 is not erroneously determined to be non-responsive.

続いて、移動端末装置2が、図3に示したテーブル9から、次に送信するコマンドに対応付けられている重み付け係数を読み出し、読み出した重み付け係数を規定値に乗算し、乗算結果をタイムアウト時間Toutとして記憶装置7に上書きさせる(ステップS216)。ここで、次に送信するコマンドが、非接触ICカード3に処理させた場合に最も長い処理時間が予測されるWRITE系のコマンドであったとする。すると、記憶装置7には、最長のタイムアウト時間Toutである900msが記憶される。タイムアウト時間Toutの記憶が完了すると、移動端末装置2が、近距離無線通信を介して、非接触ICカード3にコマンドを送信する(ステップS217)。続いて、非接触ICカード3が、送信されてきたコマンドを受信し(ステップS218)、受信したコマンドが示すコマンド処理の実行に要する時間がFWT規定値よりも長いと判定すると、移動端末装置2にFWT延長要求を送信する(ステップS219)。続いて、移動端末装置2が、送信されたFWT延長要求送信を受信し(ステップS220)、非接触ICカード3にFWT延長応答を送信する(ステップS221)。続いて、非接触ICカード3が、受信したコマンドが指定する処理、つまり、コマンド処理を実行する(ステップS222)。コマンド処理が完了すると、移動端末装置2が、移動端末装置2にレスポンスを送信し(ステップS223)、移動端末装置2が、送信されてきたレスポンスを受信する(ステップS224)。タイムアウト時間Toutが最長の値である900msとなるため、非接触ICカード3からのレスポンスの送信が遅くなっても、コマンドの送信時点からタイムアウト時間Tout以内にレスポンスが受信され、非接触ICカード3が無応答であると誤判定されずに済む。 Subsequently, the mobile terminal device 2 reads out the weighting factor associated with the next command to be transmitted from the table 9 shown in FIG. The memory device 7 is overwritten as Tout (step S216). Here, it is assumed that the command to be transmitted next is a WRITE command that is expected to take the longest processing time when processed by the non-contact IC card 3 . Then, 900 ms, which is the longest timeout time Tout, is stored in the storage device 7 . When the storage of the timeout time Tout is completed, the mobile terminal device 2 transmits a command to the non-contact IC card 3 via short-range wireless communication (step S217). Subsequently, when the contactless IC card 3 receives the transmitted command (step S218) and determines that the time required to execute the command processing indicated by the received command is longer than the FWT specified value, the mobile terminal device 2 (step S219). Subsequently, the mobile terminal device 2 receives the transmitted FWT extension request transmission (step S220), and transmits an FWT extension response to the non-contact IC card 3 (step S221). Subsequently, the non-contact IC card 3 executes the processing specified by the received command, that is, the command processing (step S222). When the command processing is completed, the mobile terminal device 2 transmits a response to the mobile terminal device 2 (step S223), and the mobile terminal device 2 receives the transmitted response (step S224). Since the timeout time Tout is the longest value of 900 ms, even if the transmission of the response from the contactless IC card 3 is delayed, the response is received within the timeout time Tout from the point of transmission of the command, and the contactless IC card 3 is not erroneously determined to be non-response.

このようなフローを繰り返し、移動端末装置2と非接触ICカード3との間で、コマンドやレスポンス等の送受信を繰り返すことで、移動端末装置2が受信したカード情報を非接触ICカード3の記憶装置20に書き込み、非接触ICカード3の発行が行われる。 By repeating such a flow and repeating transmission and reception of commands, responses, etc. between the mobile terminal device 2 and the non-contact IC card 3, the card information received by the mobile terminal device 2 is stored in the non-contact IC card 3. The information is written in the device 20 and the non-contact IC card 3 is issued.

以上説明したように、本発明の実施形態に係る移動端末装置2は、近距離無線通信を介して、非接触ICカード3にコマンドを送信するコマンド送信部14と、送信したコマンドへのレスポンスを、近距離無線通信を介して、非接触ICカード3から受信するレスポンス受信部15と、コマンドの送信時点からタイムアウト時間以内にそのコマンドへのレスポンスが受信されなかった場合に、非接触ICカード3が無応答であると判定する無応答判定部16とを備えるようにした。また、予め定められた複数のコマンドのそれぞれに対応付けて、対応するコマンドを非接触ICカード3に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を、タイムアウト時間Toutの候補を示す情報として記憶している記憶装置7を備えるようにした。さらに、移動端末装置2と非接触ICカード3との通信路が設定された後の、毎回のコマンドの送信直前に、記憶装置7から、送信されるコマンドに対応付けられている候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間Toutを設定するタイムアウト時間設定部13とを備えるようにした。それゆえ、例えば、処理に時間がかかるコマンドを送信する際に、タイムアウト時間Toutを長くすることができ、非接触ICカード3からのレスポンスの送信が遅くなっても、非接触ICカード3が無応答であると誤判定されずに済む。そのため、非接触ICカード3が無応答であるかをより適切に判定可能な移動端末装置2を提供することができる。 As described above, the mobile terminal device 2 according to the embodiment of the present invention includes the command transmission unit 14 that transmits a command to the non-contact IC card 3 via short-range wireless communication, and the response to the transmitted command. , a response receiving unit 15 that receives a response from the non-contact IC card 3 via short-range wireless communication; and a no-response determination unit 16 for determining that the is no response. Also, information indicating a time longer than the processing time expected to be required when the non-contact IC card 3 processes the corresponding command is associated with each of a plurality of predetermined commands, and is set as the timeout time Tout. A storage device 7 is provided for storing information indicating candidates for . Furthermore, after the communication path between the mobile terminal device 2 and the non-contact IC card 3 has been established, immediately before each command transmission, information indicating candidates associated with the command to be transmitted is stored from the storage device 7. and a timeout time setting unit 13 for setting the timeout time Tout based on the read information. Therefore, for example, when transmitting a command that takes a long time to process, the timeout period Tout can be lengthened. It can be prevented from being erroneously determined to be a response. Therefore, it is possible to provide the mobile terminal device 2 that can more appropriately determine whether the contactless IC card 3 is not responding.

また同様に、非接触ICカード3が無応答であるかをより適切に判定可能な移動端末装置2の制御プログラム、及び移動端末装置2の制御方法を提供することができる。
また、本発明の実施形態に係る移動端末装置2によれば、例えば、処理にかかる時間が短いコマンドを送信する際に、タイムアウト時間Toutを短くすることができ、非接触ICカード3が無応答である場合にその旨を表す判定結果を直ぐに得ることができる。
また、タイムアウト時間Toutの規定値は維持されるため、タイムアウト時間Toutを用いた他のアプリ(例えば、非接触ICカード3が電子マネーカードである場合には、電子マネーカードの残高の確認をするためのアプリ)の挙動に影響を与えずに済む。
Similarly, it is possible to provide a control program for the mobile terminal device 2 and a control method for the mobile terminal device 2 that can more appropriately determine whether the contactless IC card 3 is not responding.
Further, according to the mobile terminal device 2 according to the embodiment of the present invention, for example, when transmitting a command that takes a short time to process, the timeout time Tout can be shortened, and the non-contact IC card 3 is not responding. In this case, it is possible to immediately obtain a determination result indicating that fact.
Also, since the specified value of the timeout time Tout is maintained, another application using the timeout time Tout (for example, if the non-contact IC card 3 is an electronic money card, the balance of the electronic money card can be checked). without affecting the behavior of the app).

また、本発明の実施形態に係る移動端末装置2は、タイムアウト時間設定部13が、記憶装置7が記憶しているタイムアウト時間Toutの候補を示す情報のうちに、送信されるコマンドに対応付けられたタイムアウト時間Toutの候補を示す情報がないと判定した場合には、記憶装置7から、記憶装置7が記憶している最長のタイムアウト時間Toutの候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間Toutを設定するようにした。それゆえ、テーブル9に登録されていない想定外のコマンドにも対処することができ、非接触ICカード3が無応答であるかをより適切に判定することができる。 Further, in the mobile terminal device 2 according to the embodiment of the present invention, the timeout time setting unit 13 stores the information indicating the candidates for the timeout time Tout stored in the storage device 7 in correspondence with the command to be transmitted. If it is determined that there is no information indicating a candidate for the timeout period Tout, the information indicating the candidate for the longest timeout period Tout stored in the storage apparatus 7 is read from the storage apparatus 7, and based on the read information, Timeout time Tout is set. Therefore, unexpected commands not registered in the table 9 can be dealt with, and it is possible to more appropriately determine whether the contactless IC card 3 is not responding.

(変形例)
(1)なお、上記実施形態では、タイムアウト時間設定部13が、記憶装置7から、送信されるコマンドに対応付けられているタイムアウト時間Toutの候補を示す情報を読み出し、読み出した情報に基づき、タイムアウト時間Toutを設定する例を示したが、他の構成を採用することもできる。例えば、コマンドを送信する際に、非接触ICカード3に処理させた場合に最も長い処理時間(例えば、700ms)が予測されるコマンドにおける、その最も長い処理時間よりも長い時間(例えば、900ms)を、タイムアウト時間Toutとして設定するようにしてもよい。具体的には、図6に示すように、テーブル9として、全てのコマンドに対応付けて重み付け係数「3」を記憶しているものを用いる。それゆえ、記憶装置7が、非接触ICカード3に処理させた場合に最も長い処理時間が予測されるコマンドのその最も長い処理時間よりも長い時間を示す情報(重み付け係数「3」)を、タイムアウト時間の候補を示す情報として記憶していることになる。これにより、タイムアウト時間設定部13が、重み付け係数「3」と、タイムアウト時間Toutの規定値「300ms」とを乗算した乗算結果「900ms」をタイムアウト時間Toutとする。
(Modification)
(1) In the above-described embodiment, the timeout period setting unit 13 reads information indicating candidates for the timeout period Tout associated with the command to be transmitted from the storage device 7, and based on the read information, sets the timeout period. Although an example of setting the time Tout has been shown, other configurations can also be adopted. For example, when the command is transmitted, the longest processing time (eg, 700 ms) is expected to be processed by the non-contact IC card 3, and the longest processing time is longer than the longest processing time (eg, 900 ms). may be set as the timeout time Tout. Specifically, as shown in FIG. 6, a table 9 that stores weighting coefficients "3" in association with all commands is used. Therefore, the storage device 7 stores information (weighting coefficient "3") indicating a time longer than the longest processing time of the command expected to be processed by the non-contact IC card 3 as the longest processing time. It is stored as information indicating candidates for the timeout period. As a result, the timeout time setting unit 13 multiplies the weighting factor "3" and the specified value "300 ms" of the timeout time Tout, and sets the result "900 ms" as the timeout time Tout.

この場合、タイムアウト時間Toutの設定は、図7に示すように、活性状態となってから最初のコマンドを送信する直前にだけ行えばよい。具体的には、図8に示すように、ステップS109において、次に送信するコマンドがあると判定した場合には(Yes)ステップS107に戻るようにする。これにより、タイムアウト時間設定部13が、移動端末装置2と非接触ICカード3の通信路が設定された後の、最初のコマンドの送信直前に、記憶装置7から重み付け係数「3」をタイムアウト時間Toutの候補を示す情報として読み出し、読み出した重み付け係数「3」(タイムアウト時間Toutの候補を示す情報)に基づき、タイムアウト時間Tout(900ms)を設定することになる。そのため、移動端末装置2と非接触ICカード3の通信路が設定された後の、毎回のコマンドの送信直前にタイムアウト時間Toutを設定するものに比べ、タイムアウト時間Toutの設定に要する時間の合計を短縮できる。図7のシーケンス図では、図5のステップS216が省略されている。 In this case, as shown in FIG. 7, the timeout period Tout may be set only immediately before the first command is transmitted after the active state. Specifically, as shown in FIG. 8, when it is determined in step S109 that there is a command to be transmitted next (Yes), the process returns to step S107. As a result, the timeout period setting unit 13 sets the weighting coefficient "3" from the storage device 7 to the timeout period immediately before sending the first command after the communication path between the mobile terminal device 2 and the non-contact IC card 3 is set. Information indicating a candidate for Tout is read, and a timeout time Tout (900 ms) is set based on the read weighting coefficient "3" (information indicating a candidate for timeout time Tout). Therefore, the total time required for setting the timeout time Tout is reduced compared to the case where the timeout time Tout is set immediately before each command transmission after the communication path between the mobile terminal device 2 and the non-contact IC card 3 is set. can be shortened. In the sequence diagram of FIG. 7, step S216 of FIG. 5 is omitted.

(2)また、上記実施形態では、非接触IC媒体として、非接触ICカード3を用いる例を示したが、他の構成を採用することもでき、近距離無線通信でデータ等の送受信や各種処理を行う機能を有する媒体であればよい。例えば、移動端末装置2から近距離無線通信でデータを受信し、受信したデータを記憶性表示体に書き込む電子ペーパを用いてもよい。また、例えば、移動端末装置2から近距離無線通信でコマンドを受信し、記憶しているデータに関する情報を移動端末装置2に送信する非接触メモリカードを用いてもよい。 (2) In addition, in the above embodiment, an example of using the non-contact IC card 3 as the non-contact IC medium is shown, but other configurations can also be adopted, such as transmission and reception of data, etc., by short-range wireless communication, and various Any medium may be used as long as it has a function to perform processing. For example, electronic paper that receives data from the mobile terminal device 2 by short-range wireless communication and writes the received data on a memory display may be used. Alternatively, for example, a contactless memory card that receives commands from the mobile terminal device 2 by short-range wireless communication and transmits information on stored data to the mobile terminal device 2 may be used.

(3)また、上記実施形態では、タイムアウト時間Toutの候補を示す情報として、重み付け係数を用いる例を示したが、他の構成を採用することもできる。例えば、図9に示すように、重み付け係数とタイムアウト時間Toutの規定値との乗算結果を用いてもよい。 (3) In addition, in the above embodiment, an example of using weighting coefficients as information indicating candidates for the timeout period Tout was shown, but other configurations can also be adopted. For example, as shown in FIG. 9, the result of multiplication of the weighting coefficient and the prescribed value of the timeout time Tout may be used.

1…ICカード発行システム、2…移動端末装置、3…非接触ICカード、4…SPサーバ、5…NFCアンテナ、6…NFCコントローラ、7…記憶装置、8…プロセッサ、9…テーブル、10…カード情報取得部、11…リクエスト送信部、12…FWT値取得部、13…タイムアウト時間設定部、14…コマンド送信部、15…レスポンス受信部、16…無応答判定部、17…コマンド判定部、18…NFCアンテナ、19…NFCコントローラ、20…記憶装置、21…プロセッサ、22…FWT値送信部、23…コマンド処理部、24…カード情報記憶装置、25…プロセッサ DESCRIPTION OF SYMBOLS 1... IC card issuing system, 2... Mobile terminal device, 3... Contactless IC card, 4... SP server, 5... NFC antenna, 6... NFC controller, 7... Storage device, 8... Processor, 9... Table, 10... Card information acquisition unit 11 Request transmission unit 12 FWT value acquisition unit 13 Timeout time setting unit 14 Command transmission unit 15 Response reception unit 16 No response determination unit 17 Command determination unit 18 NFC antenna 19 NFC controller 20 storage device 21 processor 22 FWT value transmission unit 23 command processing unit 24 card information storage device 25 processor

Claims (7)

NFC(Near Field Communication)規格の近距離無線通信を介して、非接触IC媒体から送信されるFWT(Frame Waiting Time)値の受信、前記非接触IC媒体から送信されるFWT値延長要求の受信、及び前記FWT値延長要求を送信した前記非接触IC媒体へのFWT延長応答の送信を行うNFCコントローラと、
前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体にコマンドを送信するコマンド送信部と、
送信したコマンドへのレスポンスを、前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体から受信するレスポンス受信部と、
コマンドの送信時点から、前記非接触IC媒体との間でコマンド及びレスポンスのやり取りを行わない不活性状態とするタイムアウト処理が実行されるまでの時間であるタイムアウト時間以内に当該コマンドへのレスポンスが受信されなかった場合に、前記非接触IC媒体が無応答であると判定して、前記タイムアウト処理を実行する無応答判定部と、
予め定められた複数のコマンドのそれぞれに対応付けて、対応するコマンドを前記非接触IC媒体に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を、前記タイムアウト時間の候補を示す情報である候補情報として記憶している記憶装置と、
前記NFCコントローラにおける前記FWT値の受信、前記FWT値延長要求の受信、及び前記FWT延長応答の送信とは関係なく、移動端末装置と前記非接触IC媒体との通信路が設定された後の、毎回のコマンドの送信直前に、前記記憶装置から、送信されるコマンドに対応付けられている前記候補情報を読み出し、読み出した前記候補情報に基づき、前記無応答判定部で用いられる前記タイムアウト時間を設定するタイムアウト時間設定部とを備えることを特徴とする移動端末装置。
Receiving an FWT (Frame Waiting Time) value transmitted from a non-contact IC medium and receiving an FWT value extension request transmitted from the non-contact IC medium via near field communication (NFC) standard short-range wireless communication; and an NFC controller that transmits an FWT extension response to the non-contact IC medium that transmitted the FWT value extension request;
a command transmission unit that transmits a command to the non-contact IC medium via the near field communication by the NFC controller;
a response receiving unit that receives a response to the transmitted command from the non-contact IC medium via the short-range wireless communication by the NFC controller;
A response to the command is received within the time-out time , which is the time from the time the command is sent until the time-out processing is executed to make the non-contact IC medium in an inactive state where commands and responses are not exchanged. a no-response determining unit that determines that the non-contact IC medium is not responding when the non-contact IC medium is not responding, and executes the timeout process ;
Information indicating a time longer than a processing time expected to be required when the corresponding command is processed by the non-contact IC medium is associated with each of a plurality of predetermined commands as the timeout time candidate. a storage device that stores candidate information that is information indicating
after a communication path between the mobile terminal device and the non-contact IC medium is established, regardless of reception of the FWT value, reception of the FWT value extension request, and transmission of the FWT extension response in the NFC controller, Immediately before each transmission of the command, the candidate information associated with the command to be transmitted is read from the storage device, and the timeout period used by the no-response determination unit based on the read candidate information. A mobile terminal device comprising: a timeout time setting unit that sets the
前記タイムアウト時間設定部は、前記記憶装置が記憶している前記候補情報のうちに、前記送信されるコマンドに対応付けられた前記候補情報がないと判定した場合には、前記記憶装置から、前記記憶装置が記憶している最長の前記タイムアウト時間の候補を示す前記候補情報を読み出し、読み出した前記候補情報に基づき、前記無応答判定部で用いられる前記タイムアウト時間を設定することを特徴とする請求項1に記載の移動端末装置。 When the timeout time setting unit determines that there is no candidate information associated with the command to be transmitted among the candidate information stored in the storage device, the and reading the candidate information indicating the longest candidate for the timeout period stored in the storage device, and setting the timeout period used in the non-response determination unit based on the read candidate information. The mobile terminal device according to claim 1. NFC(Near Field Communication)規格の近距離無線通信を介して、非接触IC媒体から送信されるFWT(Frame Waiting Time)値の受信、前記非接触IC媒体から送信されるFWT値延長要求の受信、及び前記FWT値延長要求を送信した前記非接触IC媒体へのFWT延長応答の送信を行うNFCコントローラと、
前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体にコマンドを送信するコマンド送信部と、
送信したコマンドへのレスポンスを、前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体から受信するレスポンス受信部と、
コマンドの送信時点から、前記非接触IC媒体との間でコマンド及びレスポンスのやり取りを行わない不活性状態とするタイムアウト処理が実行されるまでの時間であるタイムアウト時間以内に当該コマンドへのレスポンスが受信されなかった場合に、前記非接触IC媒体が無応答であると判定して、前記タイムアウト処理を実行する無応答判定部と、
前記非接触IC媒体に処理させた場合に最も長い処理時間が予測されるコマンドの当該最も長い処理時間よりも長い時間を示す情報を、前記タイムアウト時間の候補を示す情報である候補情報として記憶している記憶装置と、
前記NFCコントローラにおける前記FWT値の受信、前記FWT値延長要求の受信、及び前記FWT延長応答の送信とは関係なく、移動端末装置と前記非接触IC媒体の通信路が設定された後の、最初のコマンドの送信直前に、前記記憶装置から前記候補情報を読み出し、読み出した前記候補情報に基づき、前記無応答判定部で用いられる前記タイムアウト時間を設定するタイムアウト時間設定部とを備えることを特徴とする移動端末装置。
Receiving an FWT (Frame Waiting Time) value transmitted from a non-contact IC medium and receiving an FWT value extension request transmitted from the non-contact IC medium via near field communication (NFC) standard short-range wireless communication; and an NFC controller that transmits an FWT extension response to the non-contact IC medium that transmitted the FWT value extension request;
a command transmission unit that transmits a command to the non-contact IC medium via the near field communication by the NFC controller;
a response receiving unit that receives a response to the transmitted command from the non-contact IC medium via the short-range wireless communication by the NFC controller;
A response to the command is received within the time-out time , which is the time from the time the command is sent until the time-out processing is executed to make the non-contact IC medium in an inactive state where commands and responses are not exchanged. a no-response determining unit that determines that the non-contact IC medium is not responding when the non-contact IC medium is not responding, and executes the timeout process ;
Information indicating a time longer than the longest processing time of a command expected to take the longest processing time when processed by the non-contact IC medium is stored as candidate information indicating a candidate for the timeout time. a storage device containing
irrespective of the reception of the FWT value, the reception of the FWT value extension request, and the transmission of the FWT extension response in the NFC controller, after the communication path between the mobile terminal device and the contactless IC medium is established, the first a timeout time setting unit that reads the candidate information from the storage device immediately before sending the command of (1) and sets the timeout time used in the no-response determination unit based on the read candidate information. A mobile terminal device characterized by:
NFC(Near Field Communication)規格の近距離無線通信を介して、非接触IC媒体から送信されるFWT(Frame Waiting Time)値の受信、前記非接触IC媒体から送信されるFWT値延長要求の受信、及び前記FWT値延長要求を送信した前記非接触IC媒体へのFWT延長応答の送信を行うNFCコントローラを有し、前記NFCコントローラによる前記近距離無線通信が可能な移動端末装置のプロセッサに、
前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体にコマンドを送信する送信機能、
送信したコマンドへのレスポンスを、前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体から受信する受信機能、
コマンドの送信時点から、前記非接触IC媒体との間でコマンド及びレスポンスのやり取りを行わない不活性状態とするタイムアウト処理が実行されるまでの時間であるタイムアウト時間以内に当該コマンドへのレスポンスが受信されなかった場合に、前記非接触IC媒体が無応答であると判定して、前記タイムアウト処理を実行する無応答判定機能、及び
前記NFCコントローラにおける前記FWT値の受信、前記FWT値延長要求の受信、及び前記FWT延長応答の送信とは関係なく、移動端末装置と前記非接触IC媒体との通信路が設定された後の、毎回のコマンドの送信直前に、予め定められた複数のコマンドのそれぞれに対応付けて、対応するコマンドを前記非接触IC媒体に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を、前記タイムアウト時間の候補を示す情報である候補情報として記憶している記憶装置から、送信されるコマンドに対応付けられている前記候補情報を読み出し、読み出した前記候補情報に基づき、前記無応答判定機能で用いられる前記タイムアウト時間を設定するタイムアウト時間設定機能を実現させることを特徴とする移動端末装置の制御プログラム。
Receiving an FWT (Frame Waiting Time) value transmitted from a non-contact IC medium and receiving an FWT value extension request transmitted from the non-contact IC medium via near field communication (NFC) standard short-range wireless communication; and a processor of a mobile terminal device having an NFC controller that transmits an FWT extension response to the non-contact IC medium that transmitted the FWT value extension request, and capable of the short-range wireless communication by the NFC controller,
a transmission function for transmitting a command to the contactless IC medium via the near field communication by the NFC controller;
a receiving function of receiving a response to the transmitted command from the contactless IC medium via the short-range wireless communication by the NFC controller;
A response to the command is received within the time-out time , which is the time from the time the command is sent until the time-out processing is executed to make the non-contact IC medium in an inactive state where commands and responses are not exchanged. a non-response determination function for determining that the non-contact IC medium is non-responsive and executing the time-out process when the non-contact IC medium has not responded, and receiving the FWT value and the FWT value extension request in the NFC controller. , and each of a plurality of predetermined commands immediately before each command transmission after the communication path between the mobile terminal device and the non-contact IC medium is set regardless of the transmission of the FWT extension response. and stores information indicating a time longer than the processing time expected to be required when the corresponding command is processed by the non-contact IC medium as candidate information indicating candidates for the timeout time. reading out the candidate information associated with the command to be transmitted from the storage device, and setting the timeout period for setting the timeout period used in the no-response determination function based on the readout candidate information. A control program for a mobile terminal device characterized by realizing functions.
NFC(Near Field Communication)規格の近距離無線通信を介して、非接触IC媒体から送信されるFWT(Frame Waiting Time)値の受信、前記非接触IC媒体から送信されるFWT値延長要求の受信、及び前記FWT値延長要求を送信した前記非接触IC媒体へのFWT延長応答の送信を行うNFCコントローラを有し、前記NFCコントローラによる前記近距離無線通信が可能な移動端末装置のプロセッサに、
前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体にコマンドを送信する送信機能、
送信したコマンドへのレスポンスを、前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体から受信する受信機能、
コマンドの送信時点から、前記非接触IC媒体との間でコマンド及びレスポンスのやり取りを行わない不活性状態とするタイムアウト処理が実行されるまでの時間であるタイムアウト時間以内に当該コマンドへのレスポンスが受信されなかった場合に、前記非接触IC媒体が無応答であると判定して、前記タイムアウト処理を実行する無応答判定機能、及び
前記NFCコントローラにおける前記FWT値の受信、前記FWT値延長要求の受信、及び前記FWT延長応答の送信とは関係なく、移動端末装置と前記非接触IC媒体との通信路が設定された後の、最初の前記コマンドの送信直前に、前記非接触IC媒体に処理させた場合に最も長い処理時間が予測されるコマンドの当該最も長い処理時間よりも長い時間を示す情報を、前記タイムアウト時間の候補を示す情報である候補情報として記憶している記憶装置から、前記候補情報を読み出し、読み出した前記候補情報に基づき、前記無応答判定機能で用いられる前記タイムアウト時間を設定するタイムアウト時間設定機能を実現させることを特徴とする移動端末装置の制御プログラム。
Receiving an FWT (Frame Waiting Time) value transmitted from a non-contact IC medium and receiving an FWT value extension request transmitted from the non-contact IC medium via near field communication (NFC) standard short-range wireless communication; and a processor of a mobile terminal device having an NFC controller that transmits an FWT extension response to the non-contact IC medium that transmitted the FWT value extension request, and capable of the short-range wireless communication by the NFC controller,
a transmission function for transmitting a command to the contactless IC medium via the near field communication by the NFC controller;
a receiving function of receiving a response to the transmitted command from the contactless IC medium via the short-range wireless communication by the NFC controller;
A response to the command is received within the time-out time , which is the time from the time the command is sent until the time-out processing is executed to make the non-contact IC medium in an inactive state where commands and responses are not exchanged. a non-response determination function for determining that the non-contact IC medium is non-responsive and executing the time-out process when the non-contact IC medium has not responded, and receiving the FWT value and the FWT value extension request in the NFC controller. and immediately before the transmission of the first command after the communication path between the mobile terminal device and the non-contact IC medium is set, regardless of the transmission of the FWT extension response, causing the non-contact IC medium to process from a storage device that stores information indicating a time longer than the longest processing time of a command for which the longest processing time is expected in the A control program for a mobile terminal device, characterized by reading out supplementary information and realizing a timeout time setting function for setting the timeout time used in the no-response determination function based on the read out candidate information.
NFC(Near Field Communication)規格の近距離無線通信を介して、非接触IC媒体から送信されるFWT(Frame Waiting Time)値の受信、前記非接触IC媒体から送信されるFWT値延長要求の受信、及び前記FWT値延長要求を送信した前記非接触IC媒体へのFWT延長応答の送信を行うNFCコントローラを有し、前記NFCコントローラによる前記近距離無線通信が可能な移動端末装置の制御方法であって、
前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体にコマンドを送信するステップと、
送信したコマンドへのレスポンスを、前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体から受信するステップと、
コマンドの送信時点から、前記非接触IC媒体との間でコマンド及びレスポンスのやり取りを行わない不活性状態とするタイムアウト処理が実行されるまでの時間であるタイムアウト時間以内に当該コマンドへのレスポンスが受信されなかった場合に、前記非接触IC媒体が無応答であると判定して、前記タイムアウト処理を実行するステップと、
前記NFCコントローラにおける前記FWT値の受信、前記FWT値延長要求の受信、及び前記FWT延長応答の送信とは関係なく、移動端末装置と前記非接触IC媒体との通信路が設定された後の、毎回のコマンドの送信直前に、予め定められた複数のコマンドのそれぞれに対応付けて、対応するコマンドを前記非接触IC媒体に処理させた場合にかかると予測される処理時間よりも長い時間を示す情報を、前記タイムアウト時間の候補を示す情報である候補情報として記憶している記憶装置から、送信されるコマンドに対応づけられている前記候補情報を読み出し、読み出した前記候補情報に基づき、前記タイムアウト処理を実行するステップで用いられる前記タイムアウト時間を設定するステップとを含むことを特徴とする移動端末装置の制御方法。
Receiving an FWT (Frame Waiting Time) value transmitted from a non-contact IC medium and receiving an FWT value extension request transmitted from the non-contact IC medium via near field communication (NFC) standard short-range wireless communication; and a mobile terminal device having an NFC controller that transmits an FWT extension response to the non-contact IC medium that transmitted the FWT value extension request, wherein the mobile terminal device is capable of the short-range wireless communication by the NFC controller, ,
sending a command to the contactless IC medium via the near field communication by the NFC controller;
a step of receiving a response to the transmitted command from the non-contact IC medium via the short-range wireless communication by the NFC controller;
A response to the command is received within the time-out time , which is the time from the time the command is sent until the time-out processing is executed to make the non-contact IC medium in an inactive state where commands and responses are not exchanged. if not, determining that the contactless IC medium has not responded, and executing the timeout process ;
after a communication path between the mobile terminal device and the non-contact IC medium is established, regardless of reception of the FWT value, reception of the FWT value extension request, and transmission of the FWT extension response in the NFC controller, Immediately before each command is sent, each command is associated with each of a plurality of predetermined commands to indicate a time longer than the expected processing time required when the corresponding command is processed by the non-contact IC medium. reading the candidate information associated with the command to be transmitted from a storage device storing information as candidate information indicating candidates for the timeout period, and based on the read candidate information, and setting the timeout period used in the step of executing the timeout process .
NFC(Near Field Communication)規格の近距離無線通信を介して、非接触IC媒体から送信されるFWT(Frame Waiting Time)値の受信、前記非接触IC媒体から送信されるFWT値延長要求の受信、及び前記FWT値延長要求を送信した前記非接触IC媒体へのFWT延長応答の送信を行うNFCコントローラを有し、前記NFCコントローラによる前記近距離無線通信が可能な移動端末装置の制御方法であって、
前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体にコマンドを送信するステップと、
送信したコマンドへのレスポンスを、前記NFCコントローラによる前記近距離無線通信を介して、前記非接触IC媒体から受信するステップと、
コマンドの送信時点から、前記非接触IC媒体との間でコマンド及びレスポンスのやり取りを行わない不活性状態とするタイムアウト処理が実行されるまでの時間であるタイムアウト時間以内に当該コマンドへのレスポンスが受信されなかった場合に、前記非接触IC媒体が無応答であると判定して、前記タイムアウト処理を実行するステップと、
前記NFCコントローラにおける前記FWT値の受信、前記FWT値延長要求の受信、及び前記FWT延長応答の送信とは関係なく、移動端末装置と前記非接触IC媒体との通信路が設定された後の、最初のコマンドの送信直前に、前記非接触IC媒体に処理させた場合に最も長い処理時間が予測されるコマンドの当該最も長い処理時間よりも長い時間を示す情報を、前記タイムアウト時間の候補を示す情報である候補情報として記憶している記憶装置から、前記候補情報を読み出し、読み出した前記候補情報に基づき、前記タイムアウト処理を実行するステップで用いられる前記タイムアウト時間を設定するステップとを含むことを特徴とする移動端末装置の制御方法。
Receiving an FWT (Frame Waiting Time) value transmitted from a non-contact IC medium and receiving an FWT value extension request transmitted from the non-contact IC medium via near field communication (NFC) standard short-range wireless communication; and a mobile terminal device having an NFC controller that transmits an FWT extension response to the non-contact IC medium that transmitted the FWT value extension request, wherein the mobile terminal device is capable of the short-range wireless communication by the NFC controller, ,
sending a command to the contactless IC medium via the near field communication by the NFC controller;
a step of receiving a response to the transmitted command from the non-contact IC medium via the short-range wireless communication by the NFC controller;
A response to the command is received within the time-out time , which is the time from the time the command is sent until the time-out processing is executed to make the non-contact IC medium in an inactive state where commands and responses are not exchanged. if not, determining that the contactless IC medium has not responded, and executing the timeout process ;
after a communication path between the mobile terminal device and the non-contact IC medium is established, regardless of reception of the FWT value, reception of the FWT value extension request, and transmission of the FWT extension response in the NFC controller, Immediately before transmission of the first command, information indicating a time longer than the longest processing time of the command that is expected to take the longest processing time when processed by the non-contact IC medium is indicated as the timeout time candidate. reading the candidate information from a storage device stored as candidate information, and setting the timeout period used in the step of executing the timeout process based on the read candidate information. A control method for a mobile terminal device, characterized by:
JP2018087306A 2018-04-27 2018-04-27 MOBILE TERMINAL DEVICE, MOBILE TERMINAL CONTROL PROGRAM, AND MOBILE TERMINAL CONTROL METHOD Active JP7192240B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018087306A JP7192240B2 (en) 2018-04-27 2018-04-27 MOBILE TERMINAL DEVICE, MOBILE TERMINAL CONTROL PROGRAM, AND MOBILE TERMINAL CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018087306A JP7192240B2 (en) 2018-04-27 2018-04-27 MOBILE TERMINAL DEVICE, MOBILE TERMINAL CONTROL PROGRAM, AND MOBILE TERMINAL CONTROL METHOD

Publications (2)

Publication Number Publication Date
JP2019192143A JP2019192143A (en) 2019-10-31
JP7192240B2 true JP7192240B2 (en) 2022-12-20

Family

ID=68390525

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018087306A Active JP7192240B2 (en) 2018-04-27 2018-04-27 MOBILE TERMINAL DEVICE, MOBILE TERMINAL CONTROL PROGRAM, AND MOBILE TERMINAL CONTROL METHOD

Country Status (1)

Country Link
JP (1) JP7192240B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006330891A (en) 2005-05-24 2006-12-07 Konica Minolta Photo Imaging Inc Id card preparation system and id card preparation method
US20070205869A1 (en) 2006-03-06 2007-09-06 Fujitsu Limited Tag communication device and tag communication method
JP2012194904A (en) 2011-03-17 2012-10-11 Toshiba Corp Portable electronic device, ic card, and communication method applied to portable electronic device
JP2013210992A (en) 2012-02-27 2013-10-10 Casio Comput Co Ltd Information processing device, information processing method and program
JP2014116712A (en) 2012-12-07 2014-06-26 Jr East Mechatronics Co Ltd Reader/writer device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006330891A (en) 2005-05-24 2006-12-07 Konica Minolta Photo Imaging Inc Id card preparation system and id card preparation method
US20070205869A1 (en) 2006-03-06 2007-09-06 Fujitsu Limited Tag communication device and tag communication method
JP2012194904A (en) 2011-03-17 2012-10-11 Toshiba Corp Portable electronic device, ic card, and communication method applied to portable electronic device
JP2013210992A (en) 2012-02-27 2013-10-10 Casio Comput Co Ltd Information processing device, information processing method and program
JP2014116712A (en) 2012-12-07 2014-06-26 Jr East Mechatronics Co Ltd Reader/writer device

Also Published As

Publication number Publication date
JP2019192143A (en) 2019-10-31

Similar Documents

Publication Publication Date Title
US10892798B2 (en) Communication apparatus, communication method, and program for exchanging data with a target
US9900052B2 (en) Communication apparatus, communication method, and program
EP2577554B1 (en) Method of managing communications with a nfc controller
KR20100016062A (en) Method for communicating and transmitting a message relating to a transaction for a contactless application, terminal, secured module and associated systems
EP3387581B1 (en) Systems and methods for a cloud connected transponder
KR20100029092A (en) Method for processing application commands from physical channels using a portable electronic device and corresponding device and system
CN106415591B (en) Electronic equipment, system and method for NFC
US9021504B2 (en) Method and device for automatically selecting an application that can be implemented by said device
KR102624022B1 (en) Communication devices and methods
JP7192240B2 (en) MOBILE TERMINAL DEVICE, MOBILE TERMINAL CONTROL PROGRAM, AND MOBILE TERMINAL CONTROL METHOD
JP2005339141A (en) Portable information storage medium, information processing device, program and communication establishing method
EP3428833A1 (en) Radio tag reading device and radio tag reading method
JP7255253B2 (en) Electronic information storage media, communication equipment and communication systems
JP2005309481A (en) Reader/writer, support device, reader/writer support method and reader/writer support system
JP2011065477A (en) Mobile electronic device
JP2006012026A (en) Mobile information storage medium and program therefor
JP6123539B2 (en) Identifier generating apparatus, identifier generating method, and identifier generating program
CN115244559B (en) Method and system for capturing contactless communication interactions to debug and evaluate contactless card transactions
JP2013164686A (en) Ic card and portable electronic device
US11791866B2 (en) Systems and methods for device coexistence
JP6260344B2 (en) Identifier determining apparatus, identifier determining method, and identifier determining program
JP2017142655A (en) Electronic information storage medium, information processing method, and information processing program
JP2018063643A (en) Electronic information storage medium, ic card, setting information transmitting method, and setting information transmitting program
KR20160143257A (en) Install method of mobile application using the NFC

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210317

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220415

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220913

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221019

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221121

R150 Certificate of patent or registration of utility model

Ref document number: 7192240

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150