JP5823109B2 - Portable electronic device and method for controlling portable electronic device - Google Patents

Portable electronic device and method for controlling portable electronic device Download PDF

Info

Publication number
JP5823109B2
JP5823109B2 JP2010208485A JP2010208485A JP5823109B2 JP 5823109 B2 JP5823109 B2 JP 5823109B2 JP 2010208485 A JP2010208485 A JP 2010208485A JP 2010208485 A JP2010208485 A JP 2010208485A JP 5823109 B2 JP5823109 B2 JP 5823109B2
Authority
JP
Japan
Prior art keywords
expiration date
program
card
date information
terminal device
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
JP2010208485A
Other languages
Japanese (ja)
Other versions
JP2012064038A (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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP2010208485A priority Critical patent/JP5823109B2/en
Publication of JP2012064038A publication Critical patent/JP2012064038A/en
Application granted granted Critical
Publication of JP5823109B2 publication Critical patent/JP5823109B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明の実施形態は、携帯可能電子装置、及び携帯可能電子装置の制御方法に関する。   Embodiments described herein relate generally to a portable electronic device and a method for controlling the portable electronic device.

一般的に、携帯可能電子装置として用いられるICカードは、プラスチックなどで形成されたカード状の本体と本体に埋め込まれたICモジュールとを備えている。ICモジュールは、ICチップを有している。ICチップは、電源が無い状態でもデータを保持することができるEEPROM(Electrically Erasable Programmable Read−Only Memory)またはフラッシュROMなどの不揮発性メモリと、種々の演算を実行するCPUとを有している。   In general, an IC card used as a portable electronic device includes a card-like main body formed of plastic or the like and an IC module embedded in the main body. The IC module has an IC chip. The IC chip has a nonvolatile memory such as an EEPROM (Electrically Erasable Programmable Read-Only Memory) or a flash ROM that can hold data even in the absence of a power source, and a CPU that executes various operations.

ICカードは、例えば、国際標準規格ISO/IEC7816に準拠したICカードである。ICカードは、携帯性に優れる。また、ICカードは、外部装置との通信及び複雑な演算処理を行う事ができる。また、偽造が難しい為、ICカードは、機密性の高い情報などを格納してセキュリティシステム、電子商取引などに用いられることが想定される。   The IC card is, for example, an IC card conforming to the international standard ISO / IEC7816. The IC card is excellent in portability. In addition, the IC card can perform communication with an external device and complicated calculation processing. Further, since it is difficult to forge, the IC card is assumed to store highly confidential information and be used for a security system, electronic commerce, and the like.

近年、ICカードに搭載されるICチップの高性能化に伴い、ICチップに記憶されている複数のアプリケーションを実行することができるICカードが実用化されている。このようなICカードは、専用のリーダライタ(端末装置)からコマンドを受信し、受信したコマンドに基づいてアプリケーションを実行することにより、種々の処理を実行することができる。   In recent years, IC cards capable of executing a plurality of applications stored in an IC chip have been put into practical use as the performance of the IC chip mounted on the IC card increases. Such an IC card can execute various processes by receiving a command from a dedicated reader / writer (terminal device) and executing an application based on the received command.

ICカードを使用することができる期間を定める為に、有効期限を示す情報(有効期限情報)をICカードに格納する場合がある。この場合、ICカードの発行者(issuer)は、有効期限前に新たにICカードを発行する。発行者は、有効期限の切れるICカードを所有する所有者(card holder)に発行したICカードを送付する。即ち、発行者は、ICカードの有効期限毎に新たにカードを発行し、所有者に送付する必要がある。この為、コストが嵩むという課題がある。   In order to determine a period during which the IC card can be used, information indicating the expiration date (expiration date information) may be stored in the IC card. In this case, the IC card issuer issues a new IC card before the expiration date. The issuer sends the issued IC card to the owner (card holder) of the IC card that expires. That is, the issuer needs to issue a new card every time the IC card expires and send it to the owner. For this reason, there exists a subject that cost increases.

特開2001−344032号公報JP 2001-344032 A

そこで、コストを抑えることができる携帯可能電子装置、及び携帯可能電子装置の制御方法を提供することを目的とする。   Accordingly, it is an object of the present invention to provide a portable electronic device that can reduce costs and a method for controlling the portable electronic device.

一実施形態に係る携帯可能電子装置は、端末装置を経由してサーバ装置と通信を行う携帯可能電子装置であって、処理を実行する為のプログラムと、前記プログラムの有効期限を示す有効期限情報とを予め記憶する記憶部と、前記端末装置から入力される処理の実行を指示するコマンドを受けとる受信部と、前記コマンドから日付を示す日付情報を取得する日付情報取得部と、前記有効期限情報が示す前記有効期限と前記日付情報が示す前記日付とに基づいて前記有効期限までの残り時間を判定し、判定した残り時間が予め設定された閾値未満であるか否か判断する判断部と、前記残り時間が予め設定された閾値以上であると判断した場合、前記コマンドに応じた処理を実行し、前記処理の結果に基づいて第1のレスポンスを生成する第1のコマンド処理部と、前記残り時間が予め設定された閾値未満であると判断した場合、前記コマンドに応じた処理を実行し、前記プログラムの更新を前記サーバ装置に対して要求する為のプログラム要求と前記処理の結果とに基づいて第2のレスポンスを生成する第2のコマンド処理部と、前記第1のレスポンス及び前記第2のレスポンスのいずれかを前記端末装置に対して送信する送信部と、前記第2のレスポンスを前記端末装置に対して送信した場合、前記端末装置を介して前記サーバ装置から送信された新たな有効期限情報を含む新プログラムを受信し、受信した新プログラムにより前記記憶部により記憶されている前記プログラムの少なくとも前記有効期限情報を更新する更新部と、を具備する。 A portable electronic device according to an embodiment is a portable electronic device that communicates with a server device via a terminal device, a program for executing processing, and expiration date information indicating an expiration date of the program A storage unit that stores in advance, a reception unit that receives a command instructing execution of processing input from the terminal device, a date information acquisition unit that acquires date information indicating a date from the command , and the expiration date information A determination unit that determines a remaining time until the expiration date based on the expiration date indicated by the date and the date indicated by the date information , and determines whether the determined remaining time is less than a preset threshold; When it is determined that the remaining time is equal to or greater than a preset threshold, a process according to the command is executed, and a first response is generated based on the result of the process A command processing unit for executing a process according to the command and requesting the server device to update the program when it is determined that the remaining time is less than a preset threshold value; A second command processing unit that generates a second response based on the result of the processing, a transmission unit that transmits one of the first response and the second response to the terminal device, When the second response is transmitted to the terminal device, a new program including new expiration date information transmitted from the server device via the terminal device is received, and the storage unit is received by the received new program. And an update unit that updates at least the expiration date information of the program stored in (1).

図1は、一実施形態に係るICカードの処理装置の構成例について説明するための説明図である。FIG. 1 is an explanatory diagram for explaining a configuration example of an IC card processing device according to an embodiment. 図2は、一実施形態に係るICカードの構成例について説明するための説明図である。FIG. 2 is an explanatory diagram for explaining a configuration example of an IC card according to an embodiment. 図3は、一実施形態に係るICカードの動作の例について説明するための説明図である。FIG. 3 is an explanatory diagram for explaining an example of the operation of the IC card according to the embodiment.

以下、図面を参照しながら、一実施形態に係る携帯可能電子装置、及び携帯可能電子装置の制御方法について詳細に説明する。   Hereinafter, a portable electronic device and a control method for the portable electronic device according to an embodiment will be described in detail with reference to the drawings.

図1は、一実施形態に係るICカードの処理装置10の構成の例について説明するための説明図である。
図1に示すようにICカード処理システム1は、携帯可能電子装置の処理装置(端末装置)10と携帯可能電子装置(ICカード)20とセンターサーバ30とを備えている。端末装置10とICカード20とは、接触通信または非接触通信により互いに種々のデータの送受信を行う。また、端末装置10とセンターサーバ30とは、例えばネットワークなどを経由して互いに種々のデータの送受信を行う。
FIG. 1 is an explanatory diagram for explaining an example of the configuration of an IC card processing device 10 according to an embodiment.
As shown in FIG. 1, the IC card processing system 1 includes a portable electronic device processing device (terminal device) 10, a portable electronic device (IC card) 20, and a center server 30. The terminal device 10 and the IC card 20 transmit and receive various data to and from each other by contact communication or non-contact communication. In addition, the terminal device 10 and the center server 30 transmit and receive various data to and from each other via, for example, a network.

図1に示すように端末装置10は、CPU11、RAM12、ROM13、通信部14、操作部15、表示部16、及びカードリーダライタ17を備える。CPU11、RAM12、ROM13、通信部14、操作部15、表示部16、及びカードリーダライタ17は、それぞれバス19を介して互いに接続されている。   As illustrated in FIG. 1, the terminal device 10 includes a CPU 11, a RAM 12, a ROM 13, a communication unit 14, an operation unit 15, a display unit 16, and a card reader / writer 17. The CPU 11, RAM 12, ROM 13, communication unit 14, operation unit 15, display unit 16, and card reader / writer 17 are connected to each other via a bus 19.

端末装置10のCPU11は、端末装置10全体の制御を司る制御部として機能する。CPU11は、ROM13に記憶されている制御プログラム及び制御データに基づいて種々の処理を行う。例えば、CPU11は、カードリーダライタ17を介してICカード20とコンマンド及びレスポンスの送受信を行う。   The CPU 11 of the terminal device 10 functions as a control unit that controls the entire terminal device 10. The CPU 11 performs various processes based on the control program and control data stored in the ROM 13. For example, the CPU 11 transmits and receives commands and responses to and from the IC card 20 via the card reader / writer 17.

RAM12は、ワーキングメモリとして機能する揮発性のメモリである。RAM12は、CPU11の処理中のデータなどを一時的に格納する。例えば、RAM12は、カードリーダライタ17または通信部14を介して外部の機器と送受信するデータを一時的に格納する。また、RAM12は、CPU11が実行するプログラムを一時的に格納する。ROM13は、予め制御用のプログラム及び制御データなどを記憶する不揮発性のメモリである。   The RAM 12 is a volatile memory that functions as a working memory. The RAM 12 temporarily stores data being processed by the CPU 11. For example, the RAM 12 temporarily stores data to be transmitted / received to / from an external device via the card reader / writer 17 or the communication unit 14. The RAM 12 temporarily stores a program executed by the CPU 11. The ROM 13 is a non-volatile memory that stores a control program, control data, and the like in advance.

通信部14は、端末装置10とセンターサーバ30とをネットワーク経由で接続するためのインターフェースである。通信部14は、例えばLANポートなどを備える。端末装置10は、通信部14を介して、センターサーバ30と種々のデータを伝送することが出来る。   The communication unit 14 is an interface for connecting the terminal device 10 and the center server 30 via a network. The communication unit 14 includes, for example, a LAN port. The terminal device 10 can transmit various data with the center server 30 via the communication unit 14.

操作部15は、例えば操作キーを備える。操作部15は、端末装置10の操作者による操作入力に基づいて、操作信号を生成する。操作部15は、生成した操作信号をCPU11に入力する。なお、操作部15は、表示部16と一体に形成されるタッチパネル、または他の操作入力装置を備える構成であってもよい。   The operation unit 15 includes, for example, operation keys. The operation unit 15 generates an operation signal based on an operation input by an operator of the terminal device 10. The operation unit 15 inputs the generated operation signal to the CPU 11. The operation unit 15 may include a touch panel formed integrally with the display unit 16 or another operation input device.

表示部16は、CPU11の制御により種々の情報を表示する。表示部16は、例えば、液晶ディスプレイ、有機ELディスプレイ、または他の方式に基づいて表示処理を行う表示装置を備える。   The display unit 16 displays various information under the control of the CPU 11. The display unit 16 includes, for example, a liquid crystal display, an organic EL display, or a display device that performs display processing based on other methods.

カードリーダライタ17は、ICカード20と通信を行うためのインターフェース装置である。カードリーダライタ17は、接触通信、または非接触通信により、ICカード20と通信を行う。   The card reader / writer 17 is an interface device for communicating with the IC card 20. The card reader / writer 17 communicates with the IC card 20 by contact communication or non-contact communication.

カードリーダライタ17は、例えば、ICカード20のコンタクトパターンと接続される複数の接触端子を備える。カードリーダライタ17の複数の接触端子は、ICカード20のコンタクトパターンに電気的に接続される。これにより、端末装置10は、ICカード20と接触通信を行うことができる。カードリーダライタ17は、接続されるICカード20に対して、電源供給、リセット制御、及びデータの送受信などを行う。   The card reader / writer 17 includes, for example, a plurality of contact terminals connected to the contact pattern of the IC card 20. The plurality of contact terminals of the card reader / writer 17 are electrically connected to the contact pattern of the IC card 20. Thereby, the terminal device 10 can perform contact communication with the IC card 20. The card reader / writer 17 performs power supply, reset control, data transmission / reception, and the like for the connected IC card 20.

また、カードリーダライタ17は、例えば、ICカード20のアンテナと電波の送受信を行うアンテナを備える。これにより、端末装置10は、ICカード20と非接触通信を行うことができる。端末装置10は、カードリーダライタ17によりICカード20に対して種々のコマンドを入力する。また、端末装置10は、カードリーダライタ17から送信されるレスポンスを受信する。   The card reader / writer 17 includes, for example, an antenna that transmits and receives radio waves with the antenna of the IC card 20. Thereby, the terminal device 10 can perform non-contact communication with the IC card 20. The terminal device 10 inputs various commands to the IC card 20 by the card reader / writer 17. Further, the terminal device 10 receives a response transmitted from the card reader / writer 17.

例えば、ICカード20は、カードリーダライタ17からデータの書き込みコマンドを受信した場合、受信したデータを内部の不揮発性メモリに書き込む処理を行う。   For example, when the IC card 20 receives a data write command from the card reader / writer 17, the IC card 20 performs a process of writing the received data into the internal nonvolatile memory.

また、例えば、ICカード20は、カードリーダライタ17からデータの読み取りコマンドを受信した場合、受信したコマンドで指定される領域に記憶されているデータを読み取る。ICカード20は、読み取ったデータに基づいてレスポンスを生成し、生成したレスポンスを端末装置10に送信する。これにより、端末装置10は、ICカード20からデータを読み取ることができる。   For example, when the IC card 20 receives a data read command from the card reader / writer 17, the IC card 20 reads data stored in an area specified by the received command. The IC card 20 generates a response based on the read data, and transmits the generated response to the terminal device 10. Thereby, the terminal device 10 can read data from the IC card 20.

図2は、図1に示すICカード20の構成例について説明するための説明図である。
図2に示すように、ICカード20は、カード状の本体21と、本体内に内蔵されるICモジュール22を備えている。ICモジュール22は、1つ又は複数のICチップ23を備える。また、ICモジュール22は、通信部24を備える。なお、本体21は、少なくともICモジュール22を設置可能な形状であれば、カード状に限らず如何なる形状であっても良い。
FIG. 2 is an explanatory diagram for explaining a configuration example of the IC card 20 shown in FIG.
As shown in FIG. 2, the IC card 20 includes a card-shaped main body 21 and an IC module 22 built in the main body. The IC module 22 includes one or a plurality of IC chips 23. The IC module 22 includes a communication unit 24. The main body 21 is not limited to a card shape and may have any shape as long as at least the IC module 22 can be installed.

通信部24は、端末装置10のカードリーダライタ17と通信を行うためのインターフェースである。
例えば、通信部24は、カードリーダライタ17と接触して通信を行うコンタクトパターンを備える。コンタクトパターンは、導電性を有する金属などによりICモジュール22の表面に形成される。即ち、コンタクトパターンは、外部機器と接触可能な状態で形成される接触端子である。コンタクトパターンは、金属により形成される面が複数のエリアに区切られて形成される。区切られた各エリアは、それぞれコンタクトパターンの端子として機能する。この構成により、ICカード20は、接触通信を行うことができる。
The communication unit 24 is an interface for communicating with the card reader / writer 17 of the terminal device 10.
For example, the communication unit 24 includes a contact pattern that performs communication by contacting the card reader / writer 17. The contact pattern is formed on the surface of the IC module 22 with a conductive metal or the like. That is, the contact pattern is a contact terminal formed so as to be in contact with an external device. The contact pattern is formed by dividing a surface formed of metal into a plurality of areas. Each divided area functions as a contact pattern terminal. With this configuration, the IC card 20 can perform contact communication.

また、例えば、通信部24は、カードリーダライタ17と電波の送受信を行うアンテナと、アンテナにより送受信する信号を処理する信号処理部とを備える。   For example, the communication unit 24 includes an antenna that transmits and receives radio waves to and from the card reader / writer 17 and a signal processing unit that processes signals transmitted and received by the antenna.

アンテナは、例えば、ICモジュール22内に所定の形状で配設される金属線により構成される。ICカード20は、カードリーダライタ17に送信するデータに応じてアンテナに電流を流すことにより、アンテナに磁界を発生させる。これにより、ICカード20は、端末装置10に対してデータを送信する。また、ICカード20は、電磁誘導によりアンテナに発生する誘導電流に基づいて端末装置10から送信されるデータを認識する。   The antenna is constituted by, for example, a metal wire disposed in a predetermined shape in the IC module 22. The IC card 20 generates a magnetic field in the antenna by passing a current through the antenna in accordance with data transmitted to the card reader / writer 17. Thereby, the IC card 20 transmits data to the terminal device 10. Further, the IC card 20 recognizes data transmitted from the terminal device 10 based on an induced current generated in the antenna by electromagnetic induction.

信号処理部は、端末装置10に送信するデータに対して符号化、負荷変調などの信号処理を行う。また、信号処理部は、アンテナにより受信する信号に対して復調、及び復号を行い、端末装置10から送信されるデータを認識する。信号処理部は、認識したデータをICチップ23のCPU25に送信する。この構成により、ICカード20は、非接触通信を行うことができる。   The signal processing unit performs signal processing such as encoding and load modulation on data to be transmitted to the terminal device 10. In addition, the signal processing unit demodulates and decodes the signal received by the antenna, and recognizes data transmitted from the terminal device 10. The signal processing unit transmits the recognized data to the CPU 25 of the IC chip 23. With this configuration, the IC card 20 can perform non-contact communication.

また、ICカード20が非接触通信を行うように構成される場合、ICカード20は、電源部(図示せず)を備える。電源部は、カードリーダライタ17から送信される電波、特にキャリア波に基づいて電力を生成する。さらに、電源部は、動作クロックを生成する。電源部は、生成した電力及び動作クロックをICカード20の各部に電力を供給する。ICカード20の各部は、電力の供給を受けた場合、動作可能な状態になる。   When the IC card 20 is configured to perform non-contact communication, the IC card 20 includes a power supply unit (not shown). The power supply unit generates power based on a radio wave transmitted from the card reader / writer 17, particularly a carrier wave. Further, the power supply unit generates an operation clock. The power supply unit supplies the generated power and operation clock to each unit of the IC card 20. Each unit of the IC card 20 becomes operable when supplied with power.

ICチップ23は、CPU25、ROM26、RAM27、及び不揮発性メモリ28を備える。   The IC chip 23 includes a CPU 25, a ROM 26, a RAM 27, and a nonvolatile memory 28.

CPU25は、ICカード20の全体の制御を司る制御部として機能する。また、CPU25は、種々の判定を行う判定部として機能する。CPU25は、ROM26あるいは不揮発性メモリ28に記憶されている制御プログラム及び制御データに基づいて種々の処理を行う。例えば、CPU25は、端末装置10のカードリーダライタ17から受信したコマンドに応じて種々の処理を行い、処理結果としてのレスポンスなどのデータの生成を行なう。即ち、CPU25は、コマンド処理部として機能する。   The CPU 25 functions as a control unit that controls the entire IC card 20. Further, the CPU 25 functions as a determination unit that performs various determinations. The CPU 25 performs various processes based on the control program and control data stored in the ROM 26 or the nonvolatile memory 28. For example, the CPU 25 performs various processes in accordance with commands received from the card reader / writer 17 of the terminal device 10 and generates data such as responses as processing results. That is, the CPU 25 functions as a command processing unit.

ROM26は、予め制御用のプログラム及び制御データなどを記憶する不揮発性のメモリである。ROM26は、製造段階で制御プログラム及び制御データなどを記憶した状態でICカード20内に組み込まれる。即ち、ROM26に記憶される制御プログラム及び制御データは、予めICカード20の仕様に応じて組み込まれる。   The ROM 26 is a non-volatile memory that stores a control program and control data in advance. The ROM 26 is incorporated in the IC card 20 in a state where a control program, control data, and the like are stored at the manufacturing stage. That is, the control program and control data stored in the ROM 26 are incorporated in advance according to the specifications of the IC card 20.

RAM27は、ワーキングメモリとして機能する揮発性のメモリである。RAM27は、CPU25の処理中のデータなどを一時的に格納する。例えば、RAM27は、通信部24を介して端末装置10と送受信するデータを一時的に格納する。また、RAM27は、CPU25が実行するプログラムを一時的に格納する。   The RAM 27 is a volatile memory that functions as a working memory. The RAM 27 temporarily stores data being processed by the CPU 25. For example, the RAM 27 temporarily stores data transmitted to and received from the terminal device 10 via the communication unit 24. The RAM 27 temporarily stores a program executed by the CPU 25.

不揮発性メモリ28は、例えば、EEPROMあるいはフラッシュROMなどのデータの書き込み及び書換えが可能な不揮発性のメモリにより構成される。不揮発性メモリ28は、ICカード20の運用用途に応じて制御プログラム、アプリケーション、及び種々のデータを格納する。   The non-volatile memory 28 is configured by a non-volatile memory capable of writing and rewriting data, such as an EEPROM or a flash ROM. The non-volatile memory 28 stores a control program, an application, and various data according to the usage application of the IC card 20.

たとえば、不揮発性メモリ28は、制御プログラム、アプリケーション、及び種々のデータを格納する記憶部28aを備える。記憶部28aは、例えば、ICカード20の発行時に創成される種々のファイルを備える。各ファイルには、制御プログラム、アプリケーション、及び種々のデータなどが書き込まれる。また、アプリケーションに組み込まれるアプレット(applet)もこのファイル内に書き込まれる。   For example, the nonvolatile memory 28 includes a storage unit 28a that stores a control program, an application, and various data. The storage unit 28a includes, for example, various files created when the IC card 20 is issued. In each file, a control program, an application, various data, and the like are written. An applet incorporated in the application is also written in this file.

CPU25は、不揮発性メモリ28、または、ROM26に記憶されている制御プログラム、アプリケーション、及びアプレットを実行することにより、種々の処理を実現することができる。   The CPU 25 can implement various processes by executing control programs, applications, and applets stored in the nonvolatile memory 28 or the ROM 26.

また、制御プログラム毎、アプリケーション毎、またはアプレット毎に、有効期限が設定される場合がある。この場合、記憶部28aは、有効期限を示す情報(有効期限情報)をさらに記憶する。なお、以下、制御プログラム、アプリケーション、及びアプレットをプログラムと総称する。   An expiration date may be set for each control program, each application, or each applet. In this case, the storage unit 28a further stores information indicating the expiration date (expiration date information). Hereinafter, control programs, applications, and applets are collectively referred to as programs.

有効期限情報は、プログラムを実行可能な期間を示す情報である。有効期限情報は、例えばプログラムを実行可能な期間の最終日(または最終月)を示す情報を有する。なお、本実施形態では、ICカード20は、有効期限情報としてプログラムを実行可能な期間の最終月を示す情報を記憶部28a内に有すると仮定して説明する。   The expiration date information is information indicating a period during which the program can be executed. The expiration date information includes, for example, information indicating the last day (or last month) of a period during which the program can be executed. In the present embodiment, the IC card 20 will be described on the assumption that the storage unit 28a has information indicating the last month of a period during which the program can be executed as the expiration date information.

端末装置10は、ICカード20との間で例えば料金の収受などの取引を行う場合、ICカード20に料金の収受を実行させる為のコマンドを送信する。この場合、端末装置10は、ICカード20に送信するコマンドに、日付を示す情報(日付情報)を付加する。   When the terminal device 10 performs a transaction such as toll collection with the IC card 20, the terminal device 10 transmits a command for causing the IC card 20 to collect the toll. In this case, the terminal device 10 adds date information (date information) to the command transmitted to the IC card 20.

ICカード20は、端末装置10との間で取引を行う場合、端末装置10から受信するコマンドに基づいて、取引を実行する。さらに、ICカード20は、端末装置10から受信するコマンドに付加されている日付情報を取得する。   When the IC card 20 performs a transaction with the terminal device 10, the IC card 20 executes the transaction based on a command received from the terminal device 10. Further, the IC card 20 acquires date information added to the command received from the terminal device 10.

ICカード20は、取得した日付情報と、記憶部28aに記憶されている有効期限情報とに基づいて、有効期限までの残りの時間(月数、日数、または年数など)を算出する。なお、ここでは、ICカード20は、月数を基準として処理を行うと仮定するが、日数、または年数を用いる構成であってもよい。   The IC card 20 calculates the remaining time (months, days, years, etc.) until the expiration date based on the acquired date information and the expiration date information stored in the storage unit 28a. Here, it is assumed that the IC card 20 performs processing based on the number of months, but a configuration using days or years may also be used.

ICカード20は、有効期限までの残り月数があらかじめ設定される閾値X未満であるか否か判定する。有効期限までの残り月数があらかじめ設定される閾値X未満であると判定する場合、ICカード20は、有効期限までXヶ月未満である旨を示す情報、または、新プログラムを要求する情報をセンターサーバ30に送信する。   The IC card 20 determines whether or not the remaining number of months until the expiration date is less than a preset threshold value X. When it is determined that the number of months remaining until the expiration date is less than the preset threshold value X, the IC card 20 centers information indicating that the expiration date is less than X months or information requesting a new program. Send to server 30.

なお、有効期限までXヶ月未満である旨を示す情報及び新プログラムを要求する情報をプログラム要求(または要求情報)と総称する。このプログラム要求は、少なくとも、有効期限の更新をセンターサーバ30に要求する情報である。さらには、プログラム要求は、プログラム自体の更新をセンターサーバ30に要求する情報であってもよい。   Information indicating that the expiration date is less than X months and information requesting a new program are collectively referred to as program request (or request information). This program request is at least information for requesting the center server 30 to update the expiration date. Furthermore, the program request may be information for requesting the center server 30 to update the program itself.

上記したように、ICカード20は、有効期限までの残り月数があらかじめ設定される閾値X未満であると判定する場合、プログラム要求をセンターサーバ30に送信する。この場合、ICカード20は、プログラム要求を端末装置10に送る。端末装置10は、ICカード20から受信するプログラム要求をセンターサーバ30に伝送する。即ち、ICカード20は、端末装置10経由でプログラム要求をセンターサーバ30に送信する。   As described above, the IC card 20 transmits a program request to the center server 30 when determining that the remaining number of months until the expiration date is less than the preset threshold value X. In this case, the IC card 20 sends a program request to the terminal device 10. The terminal device 10 transmits a program request received from the IC card 20 to the center server 30. That is, the IC card 20 transmits a program request to the center server 30 via the terminal device 10.

ICカード20は、例えば、予め設定されるフォーマットに基づいて、プログラム要求を有するレスポンスを生成する。即ち、プログラム要求を有するレスポンスは、所定のフォーマットを有する。端末装置10は、ICカード20から受信するレスポンスのフォーマットを解析する。端末装置10は、レスポンスが所定のフォーマットである場合、受信したレスポンスをそのままセンターサーバ30に伝送する。   For example, the IC card 20 generates a response having a program request based on a preset format. That is, the response having the program request has a predetermined format. The terminal device 10 analyzes the format of the response received from the IC card 20. When the response is in a predetermined format, the terminal device 10 transmits the received response to the center server 30 as it is.

例えば、ICカード20及びセンターサーバ30は、イシュアスクリプト(issue a script)におけるコマンドを用いることにより、端末装置10に処理を行わせずにデータの送受信を行う。イシュアスクリプトは、例えば、EMV−Book3で規定されている。即ち、ICカード20は、センターサーバ30の管理に基づいて、例えば要求情報または新プログラムなどのデータの送受信を行う。   For example, the IC card 20 and the center server 30 transmit and receive data without performing processing on the terminal device 10 by using a command in an issue script. The issuer script is defined by, for example, EMV-Book3. That is, the IC card 20 transmits / receives data such as request information or a new program based on the management of the center server 30.

また、端末装置10は、ICカード20から受信するレスポンスの内容に基づいてレスポンスをサーバに伝送するか否か判定する構成であってもよい。例えば、端末装置10は、ICカード20からプログラム要求を含むレスポンスを受信したと判定する場合、レスポンスをセンターサーバ30に伝送する。   Further, the terminal device 10 may be configured to determine whether to transmit a response to the server based on the content of the response received from the IC card 20. For example, when the terminal device 10 determines that a response including a program request has been received from the IC card 20, the terminal device 10 transmits the response to the center server 30.

センターサーバ30は、新プログラムを保持している。この新プログラムは、例えば、あるICカード20のプログラムの有効期限を更新する為のものである。また、この新プログラムは、あるICカード20のプログラム自体を更新する為のものであってもよい。   The center server 30 holds a new program. This new program is for updating the expiration date of a program of a certain IC card 20, for example. Further, this new program may be for updating a program of an IC card 20 itself.

例えば、センターサーバ30は、ICカード20からプログラム要求を受信する場合、自身が保持している新プログラムを端末装置10経由でICカード20に伝送する。   For example, when the center server 30 receives a program request from the IC card 20, the center server 30 transmits a new program held by the center server 30 to the IC card 20 via the terminal device 10.

ICカード20は、受信する新プログラムを記憶部28aに格納する。さらに、ICカード20は、所定の処理を行う場合に実行するプログラムを切り替える。即ち、ICカード20は、既に記憶部28aに保持されているプログラム(既存プログラム)から、新たに記憶部28aに格納された新プログラムに切り替える。これにより、ICカード20は、プログラムの有効期限を更新することができる。   The IC card 20 stores the received new program in the storage unit 28a. Furthermore, the IC card 20 switches a program to be executed when performing a predetermined process. That is, the IC card 20 switches from a program (existing program) already held in the storage unit 28a to a new program newly stored in the storage unit 28a. Thereby, the IC card 20 can update the expiration date of the program.

なお、ICカード20は、既に記憶部28aに保持されているプログラム(既存プログラム)が記憶されている記憶領域に上書きすることにより、プログラムを切り替える構成であってもよい。   The IC card 20 may be configured to switch programs by overwriting a storage area in which a program (existing program) already held in the storage unit 28a is stored.

また、センターサーバ30及びICカード20は、新プログラムを伝送する前の段階で、認証処理を行う構成であってもよい。   Further, the center server 30 and the IC card 20 may be configured to perform an authentication process at a stage before transmitting the new program.

センターサーバ30は、ICカード20との間で例えば相互認証などの認証処理を行う。これにより、センターサーバ30は、センターサーバ30とICカード20との間で暗号路を確立する。   The center server 30 performs an authentication process such as mutual authentication with the IC card 20. Thereby, the center server 30 establishes an encryption path between the center server 30 and the IC card 20.

さらに、ここで、センターサーバ30は、ICカード20の所有者に暗証番号を入力させる構成であってもよい。   Further, here, the center server 30 may be configured to allow the owner of the IC card 20 to input a password.

端末装置10は、ICカード20の所有者による操作入力を受けつけ、操作信号を生成する。さらに、端末装置10は、操作信号に基づいて暗証番号のデータを生成し、生成したデータをセンターサーバ30に送信する。さらに、端末装置10は、ICカード20を識別する為の情報(カードID)をICカード20から読み取り、端末装置10に送信する。   The terminal device 10 receives an operation input by the owner of the IC card 20 and generates an operation signal. Further, the terminal device 10 generates a code number data based on the operation signal, and transmits the generated data to the center server 30. Further, the terminal device 10 reads information (card ID) for identifying the IC card 20 from the IC card 20 and transmits the information to the terminal device 10.

センターサーバ30は、カードIDに基づいてICカード20を特定し、端末装置10から受信するデータと、予め登録される暗証番号とに基づいてICカード20の信頼性を判定する。センターサーバ30は、ICカード20の信頼性を確認した場合、ICカード20に新プログラムを伝送する。   The center server 30 specifies the IC card 20 based on the card ID, and determines the reliability of the IC card 20 based on the data received from the terminal device 10 and the password registered in advance. When the center server 30 confirms the reliability of the IC card 20, the center server 30 transmits the new program to the IC card 20.

また、新プログラムの容量が所定以上である場合、センターサーバ30は、新プログラムを複数のデータ(分割データ)に分割して伝送する構成であってもよい。センターサーバ30は、新プログラムの容量が予め設定される閾値Y以上であるか否かを判定する。この閾値Yは、1回の取引において伝送可能なデータの容量に基づいて予め定められるものである。   Further, when the capacity of the new program is equal to or greater than a predetermined value, the center server 30 may be configured to divide the new program into a plurality of data (divided data) and transmit it. The center server 30 determines whether or not the capacity of the new program is greater than or equal to a preset threshold Y. This threshold value Y is predetermined based on the volume of data that can be transmitted in one transaction.

センターサーバ30は、新プログラムを容量が閾値Y未満である複数の分割データに分割する。センターサーバ30は、例えば、分割した複数の分割データにそれぞれ識別情報を付加し、ICカード20に伝送する。なお、センターサーバ30は、1回の取引において1つの分割データをICカード20に送信する。   The center server 30 divides the new program into a plurality of pieces of divided data whose capacity is less than the threshold value Y. For example, the center server 30 adds identification information to each of the plurality of divided data pieces and transmits them to the IC card 20. The center server 30 transmits one piece of divided data to the IC card 20 in one transaction.

この場合、センターサーバ30は、複数の分割データのうち、既にICカード20に伝送した分割データを示す識別情報を保持する。これにより、センターサーバ30は、既にICカード20に伝送した分割データを認識することができる。センターサーバ30は、まだ既にICカード20に伝送していない分割データを伝送する。   In this case, the center server 30 holds identification information indicating the divided data already transmitted to the IC card 20 among the plurality of divided data. Thereby, the center server 30 can recognize the divided data already transmitted to the IC card 20. The center server 30 transmits the divided data that has not been transmitted to the IC card 20 yet.

ICカード20は、分割された全ての分割データを受信した後、分割データを結合し、新プログラムを取得する。   After receiving all the divided data, the IC card 20 combines the divided data and acquires a new program.

なお、既にセンターサーバ30から伝送された分割データの識別情報をICカード20が保持する構成であってもよい。この場合、ICカード20は、伝送済みの分割データのリストを生成し、プログラム要求と併せてセンターサーバに伝送する。これにより、センターサーバ30は、既にICカード20に伝送した分割データを認識することができる。   The IC card 20 may hold the identification information of the divided data already transmitted from the center server 30. In this case, the IC card 20 generates a list of transmitted divided data and transmits it to the center server together with the program request. Thereby, the center server 30 can recognize the divided data already transmitted to the IC card 20.

図3は、図1及び図2に示すICカード20の動作の例について説明するための説明図である。
端末装置10は、ICカード20との間で取引を行う場合、ICカード20に取引を実行させる為のコマンドを送信する。
FIG. 3 is an explanatory diagram for explaining an example of the operation of the IC card 20 shown in FIGS. 1 and 2.
When making a transaction with the IC card 20, the terminal device 10 transmits a command for causing the IC card 20 to execute the transaction.

ICカード20は、端末装置10との間で取引を行う場合、端末装置10から受信するコマンドに基づいて、取引を実行する(ステップS11)。さらに、ICカード20は、端末装置10から受信するコマンドに付加されている日付情報を取得する(ステップS12)。   When performing a transaction with the terminal device 10, the IC card 20 executes the transaction based on a command received from the terminal device 10 (step S11). Further, the IC card 20 acquires date information added to the command received from the terminal device 10 (step S12).

ICカード20は、取得した日付情報と、記憶部28aに記憶されている有効期限情報とを比較する(ステップS13)。これにより、ICカード20は、有効期限までの残りの月数(または日数、または年数)を判定する。さらにICカード20は、有効期限までの残りの月数が予め設定される閾値X未満であるか否かを判定する(ステップS14)。なお、有効期限までの残りの月数が予め設定される閾値X以上であると判定する場合、ICカード20は、取引を完了後、処理を終了する。   The IC card 20 compares the acquired date information with the expiration date information stored in the storage unit 28a (step S13). Thereby, the IC card 20 determines the remaining months (or days or years) until the expiration date. Further, the IC card 20 determines whether or not the remaining number of months until the expiration date is less than a preset threshold value X (step S14). When it is determined that the remaining number of months until the expiration date is equal to or greater than a preset threshold value X, the IC card 20 ends the process after completing the transaction.

有効期限までの残りの月数が予め設定される閾値X未満であると判定する場合、ICカード20は、プログラム要求を端末装置10経由でセンターサーバ30に送信する(ステップS15)。即ち、ICカード20は、有効期限までXヶ月未満である旨を示す情報、新プログラムを要求する情報、またはプログラムの更新が必要である旨を示す他の情報をセンターサーバ30に送信する。   When determining that the remaining number of months until the expiration date is less than the preset threshold value X, the IC card 20 transmits a program request to the center server 30 via the terminal device 10 (step S15). That is, the IC card 20 transmits to the center server 30 information indicating that it is less than X months until the expiration date, information requesting a new program, or other information indicating that the program needs to be updated.

センターサーバ30は、ICカード20からプログラム要求を受信する場合、自身が保持している新プログラムを端末装置10経由でICカード20に伝送する。   When the center server 30 receives a program request from the IC card 20, the center server 30 transmits the new program held by the center server 30 to the IC card 20 via the terminal device 10.

ICカード20は、センターサーバ30から伝送される新プログラムを受信する(ステップS16)。ICカード20は、既存プログラムから、受信した新プログラムに切り替える(ステップS17)。   The IC card 20 receives the new program transmitted from the center server 30 (step S16). The IC card 20 switches from the existing program to the received new program (step S17).

例えば、新プログラムが、有効期限を更新するものである場合、ICカード20は、記憶部28aの有効期限情報が記憶されている記憶領域に新たな有効期限情報を上書きする。また、例えば、新プログラムがプログラム自体を更新するものである場合、ICカード20は、新プログラムを記憶部28aに格納し、所定の処理を行う場合に実行するプログラムを既存プログラムから新プログラムに切り替える。また、ICカード20は、記憶部28aの既存プログラムが記憶されている記憶領域に新プログラムを上書きする構成であってもよい。   For example, when the new program updates the expiration date, the IC card 20 overwrites the new expiration date information in the storage area in which the expiration date information of the storage unit 28a is stored. Further, for example, when the new program updates the program itself, the IC card 20 stores the new program in the storage unit 28a and switches the program to be executed when performing a predetermined process from the existing program to the new program. . Further, the IC card 20 may be configured to overwrite the new program in the storage area in which the existing program in the storage unit 28a is stored.

上記したように、本実施形態に係るICカード20は、取引時に取得する日時情報と、予め自身が保持する有効期限情報とに基づいて、有効期限の終了までの時間を判定する。ICカード20は、判定した時間が予め設定される所定時間未満である場合に、少なくとも有効期限を更新することを要求する情報(新プログラム)をセンターサーバ30に送信する。センターサーバ30は、要求を受信する場合、新プログラムをICカード20に伝送する。ICカード20は、新プログラムを受信し、格納し、既存プログラムから新プログラムに切り替える。   As described above, the IC card 20 according to the present embodiment determines the time until the expiration date ends based on the date / time information acquired at the time of transaction and the expiration date information held by the IC card 20 in advance. When the determined time is less than a predetermined time set in advance, the IC card 20 transmits to the center server 30 information (new program) that requests at least the expiration date to be updated. When receiving the request, the center server 30 transmits the new program to the IC card 20. The IC card 20 receives and stores the new program, and switches from the existing program to the new program.

これにより、ICカード20は、カードを再発行することなく、有効期限を更新することができる。さらに、ICカード20は、カードを再発行することなく、カードに記憶されているプログラムを更新することができる。また、ICカード20自身が新プログラムの要否を判定する為、センターサーバ30とICカード20とで通信するデータ量を削減することができる。この結果、本実施形態によると、コストを抑えることができる携帯可能電子装置、及び携帯可能電子装置の制御方法を提供することができる。   Thereby, the IC card 20 can update the expiration date without reissuing the card. Furthermore, the IC card 20 can update the program stored in the card without reissuing the card. In addition, since the IC card 20 itself determines whether or not a new program is necessary, the amount of data communicated between the center server 30 and the IC card 20 can be reduced. As a result, according to the present embodiment, it is possible to provide a portable electronic device and a method for controlling the portable electronic device that can reduce costs.

なお、上述の各実施の形態で説明した機能は、ハードウエアを用いて構成するに留まらず、ソフトウエアを用いて各機能を記載したプログラムをコンピュータに読み込ませて実現することもできる。また、各機能は、適宜ソフトウエア、ハードウエアのいずれかを選択して構成するものであっても良い。   It should be noted that the functions described in the above embodiments are not limited to being configured using hardware, but can be realized by causing a computer to read a program describing each function using software. Each function may be configured by appropriately selecting either software or hardware.

なお、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。更に、異なる実施形態に亘る構成要素を適宜組み合せてもよい。
なお、以下特許請求の範囲の記載を付記する。
[C1]
端末装置を経由してサーバ装置と通信を行う携帯可能電子装置であって、
前記端末装置を経由して前記サーバ装置とデータの送受信を行う通信部と、
前記端末装置から入力される処理コマンドを実行するコマンド処理部と、
コマンド処理時に前記コマンド処理部により実行する前記処理コマンドから日付情報を取得する日付情報取得部と、
処理を実行する為のプログラムと、前記プログラムを実行可能な期間を示す有効期限情報とを予め記憶する記憶部と、
前記記憶部に記憶されている有効期限情報と、前記日付情報取得部により取得する日付情報とに基づいて、前記記憶部により記憶されている有効期限情報の更新の要否を前記コマンド処理時に判定し、判定結果に基づいて少なくとも新たな有効期限情報を含む新プログラムを要求する要求情報を前記サーバ装置に送信するように前記通信部を制御する第1の制御部と、
前記コマンド処理時に前記サーバ装置から新たな有効期限情報を含む新プログラムを受信し、受信した新プログラムを記憶するように前記記憶部を制御する第2の制御部と、
を具備し、
前記第1の制御部は、前記記憶部に記憶されている有効期限情報と、前記日付情報取得部により取得する日付情報とに基づいて、前記コマンド処理時に有効期限までの残り時間を判定し、判定した残り時間が予め設定される閾値未満である場合、前記記憶部により記憶されている有効期限情報の更新を要と判定し、
前記第2の制御部は、前記コマンド処理時に受信した新プログラムに基づいて、前記記憶部の有効期限情報に新たな有効期限情報を上書きするように前記記憶部を制御する携帯可能電子装置。
[C2]
前記第1及び第2の制御部は、前記サーバの管理に基づいて前記要求情報及び新プログラムの送受信を行うように前記通信部を制御する、
C1に記載の携帯可能電子装置。
[C3]
前記記憶部は、複数のプログラムを記憶し、前記各プログラム毎に有効期限情報を予め記憶する、
C1に記載の携帯可能電子装置。
[C4]
前記第1の制御部は、前記記憶部に記憶されている有効期限情報と、前記日付情報取得部により取得する日付情報とに基づいて、残り月数、残り日数、残り年数のうちのいずれかを算出する、
C1に記載の携帯可能電子装置。
[C5]
前記各部を備えるICモジュールと、
前記ICモジュールが配設される本体と、
を具備するC1に記載の携帯可能電子装置。
[C6]
端末装置を経由してサーバ装置と通信を行う携帯可能電子装置の制御方法であって、
前記端末装置から入力される処理コマンドを実行し、
コマンド処理時に実行する前記処理コマンドから日付情報を取得し、
処理を実行する為のプログラムと、前記プログラムを実行可能な期間を示す有効期限情報とを予め記憶し、
前記記憶されている有効期限情報と、前記取得する日付情報とに基づいて、前記コマンド処理時に有効期限までの残り時間を判定し、判定した残り時間が予め設定される閾値未満である場合、前記記憶部により記憶されている前記有効期限情報の更新を要と判定し、前記有効期限情報の更新の要否の判定結果に基づいて少なくとも新たな有効期限情報を含む新プログラムを要求する要求情報を前記サーバ装置に送信し、
前記コマンド処理時に前記サーバ装置から新たな有効期限情報を含む新プログラムを受信し、受信した新プログラムに基づいて、前記記憶部の有効期限情報に新たな有効期限情報を上書きする、
携帯可能電子装置の処理方法。
Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Further, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, you may combine suitably the component covering different embodiment.
In addition, description of a claim is added below.
[C1]
A portable electronic device that communicates with a server device via a terminal device,
A communication unit that transmits and receives data to and from the server device via the terminal device;
A command processing unit for executing a processing command input from the terminal device;
A date information acquisition unit for acquiring date information from the processing command executed by the command processing unit during command processing;
A storage unit for preliminarily storing a program for executing processing and expiration date information indicating a period in which the program can be executed;
Based on the expiration date information stored in the storage unit and the date information acquired by the date information acquisition unit, the necessity of updating the expiration date information stored in the storage unit is determined during the command processing. A first control unit that controls the communication unit to transmit request information for requesting a new program including at least new expiration date information to the server device based on the determination result;
A second control unit that receives a new program including new expiration date information from the server device during the command processing and controls the storage unit to store the received new program;
Comprising
The first control unit determines the remaining time until the expiration date during the command processing based on the expiration date information stored in the storage unit and the date information acquired by the date information acquisition unit, When the determined remaining time is less than a preset threshold, it is determined that the expiration date information stored in the storage unit needs to be updated,
The portable electronic device, wherein the second control unit controls the storage unit to overwrite the new expiration date information on the expiration date information of the storage unit based on the new program received during the command processing.
[C2]
The first and second control units control the communication unit to transmit and receive the request information and a new program based on management of the server.
The portable electronic device according to C1.
[C3]
The storage unit stores a plurality of programs, and stores expiration date information for each program in advance.
The portable electronic device according to C1.
[C4]
The first control unit is any one of the remaining months, the remaining days, and the remaining years based on the expiration date information stored in the storage unit and the date information acquired by the date information acquiring unit. To calculate,
The portable electronic device according to C1.
[C5]
An IC module comprising the above-mentioned parts;
A main body on which the IC module is disposed;
The portable electronic device according to C1, comprising:
[C6]
A method for controlling a portable electronic device that communicates with a server device via a terminal device,
Execute a processing command input from the terminal device;
Obtain date information from the processing command executed during command processing,
A program for executing processing, and expiration date information indicating a period during which the program can be executed are stored in advance.
Based on the stored expiration date information and the acquired date information, the remaining time until the expiration date is determined at the time of command processing, and when the determined remaining time is less than a preset threshold, It is determined that the expiration date information stored in the storage unit needs to be updated, and request information for requesting a new program including at least new expiration date information based on the determination result of whether or not the expiration date information needs to be updated. Sent to the server device,
Receiving a new program including new expiration date information from the server device during the command processing, and overwriting the new expiration date information on the expiration date information of the storage unit based on the received new program;
A method for processing a portable electronic device.

1…ICカード処理システム、10…端末装置、11…CPU、12…RAM、13…ROM、14…通信部、15…操作部、16…表示部、17…カードリーダライタ、19…バス、20…ICカード、21…本体、22…ICモジュール、23…ICチップ、24…通信部、25…CPU、26…ROM、27…RAM、28…不揮発性メモリ、28a…記憶部、30…センターサーバ。   DESCRIPTION OF SYMBOLS 1 ... IC card processing system, 10 ... Terminal device, 11 ... CPU, 12 ... RAM, 13 ... ROM, 14 ... Communication part, 15 ... Operation part, 16 ... Display part, 17 ... Card reader / writer, 19 ... Bus, 20 ... IC card, 21 ... main body, 22 ... IC module, 23 ... IC chip, 24 ... communication unit, 25 ... CPU, 26 ... ROM, 27 ... RAM, 28 ... non-volatile memory, 28a ... storage unit, 30 ... center server .

Claims (6)

端末装置を経由してサーバ装置と通信を行う携帯可能電子装置であって、
処理を実行する為のプログラムと、前記プログラムの有効期限を示す有効期限情報とを予め記憶する記憶部と、
前記端末装置から入力される処理の実行を指示するコマンドを受けとる受信部と、
前記コマンドから日付を示す日付情報を取得する日付情報取得部と、
前記有効期限情報が示す前記有効期限と前記日付情報が示す前記日付とに基づいて前記有効期限までの残り時間を判定し、判定した残り時間が予め設定された閾値未満であるか否か判断する判断部と、
前記残り時間が予め設定された閾値以上であると判断した場合、前記コマンドに応じた処理を実行し、前記処理の結果に基づいて第1のレスポンスを生成する第1のコマンド処理部と、
前記残り時間が予め設定された閾値未満であると判断した場合、前記コマンドに応じた処理を実行し、前記プログラムの更新を前記サーバ装置に対して要求する為のプログラム要求と前記処理の結果とに基づいて第2のレスポンスを生成する第2のコマンド処理部と、
前記第1のレスポンス及び前記第2のレスポンスのいずれかを前記端末装置に対して送信する送信部と、
前記第2のレスポンスを前記端末装置に対して送信した場合、前記端末装置を介して前記サーバ装置から送信された新たな有効期限情報を含む新プログラムを受信し、受信した新プログラムにより前記記憶部により記憶されている前記プログラムの少なくとも前記有効期限情報を更新する更新部と、
を具備する携帯可能電子装置。
A portable electronic device that communicates with a server device via a terminal device,
A storage unit for preliminarily storing a program for executing processing and expiration date information indicating an expiration date of the program;
A receiving unit that receives a command instructing execution of processing input from the terminal device ;
A date information acquisition unit for acquiring date information indicating a date from the command;
The remaining time until the expiration date is determined based on the expiration date indicated by the expiration date information and the date indicated by the date information, and it is determined whether the determined remaining time is less than a preset threshold value. A determination unit;
A first command processing unit that executes a process according to the command and generates a first response based on a result of the process when it is determined that the remaining time is equal to or greater than a preset threshold;
When it is determined that the remaining time is less than a preset threshold, a process according to the command is executed, and a program request for requesting the server device to update the program and a result of the process A second command processing unit for generating a second response based on:
A transmission unit that transmits one of the first response and the second response to the terminal device;
When the second response is transmitted to the terminal device, a new program including new expiration date information transmitted from the server device via the terminal device is received, and the storage unit is received by the received new program. An update unit for updating at least the expiration date information of the program stored by:
A portable electronic device comprising:
前記更新部は、前記第2のレスポンスを前記端末装置に対して送信した場合、前記サーバ装置との間で認証を行った上で前記サーバ装置から送信された新たな有効期限情報を含む新プログラムを受信し、受信した新プログラムにより前記記憶部により記憶されている前記プログラムの少なくとも前記有効期限情報を更新する
請求項1に記載の携帯可能電子装置。
When the update unit transmits the second response to the terminal device , the update unit performs authentication with the server device and then includes new expiration date information transmitted from the server device. And at least the expiration date information of the program stored in the storage unit by the received new program is updated .
The portable electronic device according to claim 1.
前記記憶部は、複数のプログラムと、前記各プログラム毎有効期限情報と、を予め記憶する、
請求項1に記載の携帯可能電子装置。
The storage unit stores a plurality of programs, the expiration date information for each program, a pre-
The portable electronic device according to claim 1.
前記判断部は、前記有効期限情報が示す前記有効期限と前記日付情報が示す前記日付とに基づいて、残り月数、残り日数、及び残り年数のうちのいずれか前記残り時間として算出する、
請求項1に記載の携帯可能電子装置。
The determination unit calculates the remaining time as one of the remaining months, remaining days, and remaining years based on the expiration date indicated by the expiration date information and the date indicated by the date information.
The portable electronic device according to claim 1.
前記記憶部と、受信部と、日付情報取得部と、判断部と、第1のコマンド処理部と、第2のコマンド処理部と、送信部と、更新部と、を備えるICモジュールと、
前記ICモジュールが配設される本体と、
を具備する請求項1に記載の携帯可能電子装置。
An IC module comprising the storage unit, a reception unit, a date information acquisition unit, a determination unit, a first command processing unit, a second command processing unit, a transmission unit, and an update unit ;
A main body on which the IC module is disposed;
The portable electronic device according to claim 1, comprising:
処理を実行する為のプログラムと、前記プログラムの有効期限を示す有効期限情報とを予め記憶する記憶部を具備し、端末装置を経由してサーバ装置と通信を行う携帯可能電子装置の制御方法であって、
前記端末装置から入力される処理の実行を指示するコマンドを受けとり、
前記コマンドから日付を示す日付情報を取得
前記有効期限情報が示す前記有効期限と前記日付情報が示す前記日付とに基づいて前記有効期限までの残り時間を判定し、判定した残り時間が予め設定された閾値未満であるか否か判断し、
前記残り時間が予め設定された閾値以上であると判断した場合、前記コマンドに応じた処理を実行し、前記処理の結果に基づいて第1のレスポンスを生成し、
前記残り時間が予め設定された閾値未満であると判断した場合、前記コマンドに応じた処理を実行し、前記プログラムの更新を前記サーバ装置に対して要求する為のプログラム要求と前記処理の結果とに基づいて第2のレスポンスを生成し、
前記第1のレスポンス及び前記第2のレスポンスのいずれかを前記端末装置に対して送信し、
前記第2のレスポンスを前記端末装置に対して送信した場合、前記端末装置を介して前記サーバ装置から送信された新たな有効期限情報を含む新プログラムを受信し、
受信した新プログラムにより前記記憶部により記憶されている前記プログラムの少なくとも前記有効期限情報を更新する、
携帯可能電子装置の制御方法。
A method for controlling a portable electronic device that includes a storage unit that preliminarily stores a program for executing processing and expiration date information indicating an expiration date of the program, and communicates with a server device via a terminal device. There,
Receiving a command instructing execution of processing input from the terminal device ;
It acquires date information indicating a date from the command,
The remaining time until the expiration date is determined based on the expiration date indicated by the expiration date information and the date indicated by the date information, and it is determined whether or not the determined remaining time is less than a preset threshold value. ,
If it is determined that the remaining time is greater than or equal to a preset threshold value, the process according to the command is executed, and a first response is generated based on the result of the process,
When it is determined that the remaining time is less than a preset threshold, a process according to the command is executed, and a program request for requesting the server device to update the program and a result of the process To generate a second response based on
Transmitting either the first response or the second response to the terminal device;
When the second response is transmitted to the terminal device, a new program including new expiration date information transmitted from the server device via the terminal device is received,
Updating at least the expiration date information of the program stored in the storage unit by the received new program;
Control method of portable electronic device.
JP2010208485A 2010-09-16 2010-09-16 Portable electronic device and method for controlling portable electronic device Active JP5823109B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010208485A JP5823109B2 (en) 2010-09-16 2010-09-16 Portable electronic device and method for controlling portable electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010208485A JP5823109B2 (en) 2010-09-16 2010-09-16 Portable electronic device and method for controlling portable electronic device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014087738A Division JP2014160499A (en) 2014-04-21 2014-04-21 Portable electronic device and portable electronic device control method

Publications (2)

Publication Number Publication Date
JP2012064038A JP2012064038A (en) 2012-03-29
JP5823109B2 true JP5823109B2 (en) 2015-11-25

Family

ID=46059673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010208485A Active JP5823109B2 (en) 2010-09-16 2010-09-16 Portable electronic device and method for controlling portable electronic device

Country Status (1)

Country Link
JP (1) JP5823109B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6020377B2 (en) * 2013-07-25 2016-11-02 三菱電機株式会社 IC card update device, IC card, IC card update system, and IC card update method
JP2015184936A (en) * 2014-03-25 2015-10-22 トッパン・フォームズ株式会社 Rfid system, rfid media and information writing/reading device
JP7452577B2 (en) * 2022-05-31 2024-03-19 大日本印刷株式会社 Electronic information storage medium, profile change method, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11338981A (en) * 1998-05-27 1999-12-10 Hitachi Ltd Application validity term management method, system for implementing this method, and medium having recorded processing program for this method
JP4702628B2 (en) * 2006-07-27 2011-06-15 ソニー株式会社 Electronic device, information processing method, and program

Also Published As

Publication number Publication date
JP2012064038A (en) 2012-03-29

Similar Documents

Publication Publication Date Title
US8931705B2 (en) IC card, mobile electronic device and data processing method in IC card
CN108519905A (en) Information processing equipment and method, IC chip and storage medium
JP5823109B2 (en) Portable electronic device and method for controlling portable electronic device
US20100240318A1 (en) Mobile electronic device and control method of mobile electronic device
JP5795921B2 (en) IC card, portable electronic device, and IC card control method
EP2775461B1 (en) Smart card, electronic device and portable electronic device
EP2500845A2 (en) Portable electronic apparatus
JP6178387B2 (en) Electronic device and method for controlling electronic device
JP2014160499A (en) Portable electronic device and portable electronic device control method
EP2717193B1 (en) IC card, portable electronic device, and reader/ writer
JP5433358B2 (en) Portable electronic device
JP5444138B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND PORTABLE ELECTRONIC DEVICE
JP5490044B2 (en) Portable electronic device and method for controlling portable electronic device
CN104376283A (en) Smart card COS high-speed downloading system
JP5957577B2 (en) IC card, portable electronic device, and IC card control method
JP6092342B2 (en) Non-contact portable electronic device and method for issuing non-contact portable electronic device
US20220309312A1 (en) Ic card and control program for ic card
JP2013125400A (en) Ic card, portable electronic device, and control program for ic card
JP5684051B2 (en) Portable electronic device, IC card, and control method for portable electronic device
CN102043972B (en) Information processing apparatus, communication apparatus, and program
JP2017142655A (en) Electronic information storage medium, information processing method, and information processing program
JP5677195B2 (en) Portable electronic device and method for controlling portable electronic device
JP6046068B2 (en) Portable electronic device and method for controlling portable electronic device
JP5875772B2 (en) Portable electronic device, control method for portable electronic device, and processing system for portable electronic device
JP6071677B2 (en) IC card, IC module, and portable electronic device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130213

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130903

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130904

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131105

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131205

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131212

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131219

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140109

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140116

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140121

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140421

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20140428

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20140704

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150713

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151007

R151 Written notification of patent or utility model registration

Ref document number: 5823109

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151