JP5754287B2 - IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip - Google Patents

IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip Download PDF

Info

Publication number
JP5754287B2
JP5754287B2 JP2011170969A JP2011170969A JP5754287B2 JP 5754287 B2 JP5754287 B2 JP 5754287B2 JP 2011170969 A JP2011170969 A JP 2011170969A JP 2011170969 A JP2011170969 A JP 2011170969A JP 5754287 B2 JP5754287 B2 JP 5754287B2
Authority
JP
Japan
Prior art keywords
data
processing
interface
backed
storage area
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
JP2011170969A
Other languages
Japanese (ja)
Other versions
JP2013037430A (en
Inventor
直樹 勝又
直樹 勝又
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2011170969A priority Critical patent/JP5754287B2/en
Publication of JP2013037430A publication Critical patent/JP2013037430A/en
Application granted granted Critical
Publication of JP5754287B2 publication Critical patent/JP5754287B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、複数のインターフェイスに対応した処理手段を備えるICチップにおける処理技術に関する。   The present invention relates to a processing technique in an IC chip including processing means corresponding to a plurality of interfaces.

従来から、接触型IC(Integrated Circuit)チップが搭載されたUIM(User Identity Module)が搭載された携帯端末が普及している。近年、このような携帯端末に非接触型ICチップを搭載することにより、UIMに、従来の機能(例えば加入者認証処理等)に加えて、非接触通信用インターフェイスを使って様々な機能(サービス)を提供するためのグローバルな仕組みの整備が進められている。携帯端末に搭載される非接触型ICチップには、例えば、FeliCa(登録商標)の通信方式を採用した所謂FeliCaチップや、NFC(Near Field Communication)の規格で規定されるCLF(ContactLess Front-end)などがある。そして、このような非接触型ICチップを、UIMが備える既存の接触通信用インターフェイスとは別のインターフェイスに接続することにより、UIM内で接触通信用アプリケーションに加え、非接触通信用アプリケーションを利用することができる。   Conventionally, portable terminals equipped with a UIM (User Identity Module) equipped with a contact IC (Integrated Circuit) chip have been widely used. In recent years, by mounting a non-contact type IC chip on such a portable terminal, various functions (services) can be added to a UIM using a non-contact communication interface in addition to conventional functions (for example, subscriber authentication processing). ) Is in the process of developing a global system. Non-contact type IC chips mounted on portable terminals include, for example, so-called FeliCa chips that employ a FeliCa (registered trademark) communication method, and CLF (Contact Less Front-end) defined by NFC (Near Field Communication) standards. )and so on. Then, by connecting such a non-contact type IC chip to an interface different from the existing contact communication interface provided in the UIM, the non-contact communication application is used in addition to the contact communication application in the UIM. be able to.

ところで、UIM等のICチップは、不揮発性メモリへの書き込み処理中の引き抜き等による電源供給の中断に対処するため、トランザクション(Transaction)という仕組みが利用されている。トランザクションとは、特定の一連の処理の開始前もしくは終了後のどちらかの状態のみを取り得る仕組みのことをいう。この仕組みにより、不揮発性メモリに記憶されるデータが中途半端な内部状態とならないようにしている。特許文献1には、電源供給が中断した場合に、データの書き込み前の状態に戻すことが記載されている。   Incidentally, an IC chip such as UIM uses a mechanism called “Transaction” in order to cope with interruption of power supply due to extraction or the like during writing processing to a nonvolatile memory. A transaction refers to a mechanism that can take only a state before or after the start of a specific series of processing. This mechanism prevents the data stored in the non-volatile memory from becoming an incomplete internal state. Patent Document 1 describes that when power supply is interrupted, the state before data writing is restored.

特許第4195822号Japanese Patent No. 4195822

しかしながら、従来の方法では、書き込み処理が中断された際、トランザクションにより開始前の状態に戻すためのバックアップが有効であるか否かの判断を実施するのみであった。この方法によれば、接触通信用インターフェイスと非接触通信用インターフェイスに対応した処理手段を備えるICチップにおいて、例えば電源断で中断が起きた後の初動時に、接触通信用インターフェイスを用いた処理と非接触通信用インターフェイスを用いた処理に必要なデータ領域が異なるにも関わらず、双方のデータ領域について区別すること無くトランザクションが実行される。このとき、互いの要求される処理時間制約に十分な余裕があれば良いが、一般には非接触通信用インターフェイスで要求される処理時間制約の方が厳しい場合が多い。そのため、従来の方法では、非接触通信用インターフェイスを用いた処理が正常に行われない可能性があった。   However, according to the conventional method, when the writing process is interrupted, it is only determined whether or not the backup for returning to the state before the start by the transaction is valid. According to this method, in an IC chip provided with processing means corresponding to the contact communication interface and the non-contact communication interface, for example, the processing using the contact communication interface and the non-operation at the initial operation after the interruption due to the power-off is performed. Although the data area required for processing using the contact communication interface is different, the transaction is executed without distinguishing between the two data areas. At this time, it is sufficient if the processing time constraints required by each other have a sufficient margin, but generally the processing time constraints required by the non-contact communication interface are often stricter. Therefore, in the conventional method, there is a possibility that processing using the non-contact communication interface is not normally performed.

そこで、本発明は、このような点等に鑑みてなされたものであり、処理中断によりトランザクションが行われた場合であっても、処理時間制約が厳しい方のインターフェイスを用いた処理を正常に行うことが可能なICチップ、ICチップにおける処理方法、及びICチップ用処理プログラムを提供することを目的とする。   Therefore, the present invention has been made in view of such points and the like, and even when a transaction is performed due to processing interruption, processing using the interface with the stricter processing time constraint is normally performed. An object of the present invention is to provide an IC chip, a processing method for the IC chip, and a processing program for the IC chip.

上記課題を解決するために、請求項1に記載の発明は、複数のインターフェイスに対応した処理手段と、データを記憶するデータ記憶領域と前記データをバックアップするためのバックアップ領域と、を有する不揮発性メモリと、第1の前記インターフェイスを用いた処理により受信されたデータを前記データ記憶領域に書き込む際に前記データ記憶領域に記憶されているデータを前記バックアップ領域にバックアップし、前記第1の前記インターフェイスを用いた処理が中断された場合には、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理を行う制御手段と、を備え、前記制御手段は、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、当該第2の前記インターフェイスを用いた処理に必要なデータが前記バックアップ領域にバックアップされているか否かを判定し、前記バックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うことを特徴とする。 In order to solve the above-mentioned problem, the invention described in claim 1 is a non-volatile memory comprising processing means corresponding to a plurality of interfaces, a data storage area for storing data, and a backup area for backing up the data. When data received by processing using the memory and the first interface is written to the data storage area, the data stored in the data storage area is backed up to the backup area, and the first interface Control means for performing processing for writing back the data backed up in the backup area to the data storage area when the process using is interrupted, and the control means backs up to the backup area In the process of writing back the stored data to the data storage area Whether or not data necessary for processing using the second interface is backed up in the backup area when processing using the second interface different from the first interface is started When the backup is not performed, the process using the second interface is prioritized over the write-back process.

請求項2に記載の発明は、請求項1に記載のICチップにおいて、前記第1の前記インターフェイスは、接触通信用インターフェイスであり、前記第2の前記インターフェイスは、非接触通信用インターフェイスであることを特徴とする。   According to a second aspect of the present invention, in the IC chip according to the first aspect, the first interface is a contact communication interface, and the second interface is a non-contact communication interface. It is characterized by.

請求項3に記載の発明は、請求項1又は2に記載のICチップにおいて、前記制御手段は、前記データをバックアップする際に、バックアップ対象となる前記データを優先して書き戻すか否か示す情報を含むログデータを前記不揮発性メモリに記憶しておき、前記制御手段は、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、前記不揮発性メモリに記憶されている前記ログデータを参照して優先して書き戻すデータが前記バックアップ領域にバックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うことを特徴とする。 Invention according to claim 3, in IC chip according to claim 1 or 2, wherein, when backing up the data, whether written back in favor of the data to be backed up target Log data including information to be stored in the non-volatile memory, and the control means, in the process of writing back the data backed up in the backup area to the data storage area, the first interface When processing using a different second interface is started, if data that is preferentially written back with reference to the log data stored in the nonvolatile memory is not backed up in the backup area, The processing using the second interface is prioritized over the writing back processing. That.

請求項4に記載の発明は、請求項1乃至3の何れか一項に記載のICチップを搭載したUIM(User Identity Module)であるThe invention according to claim 4 is a UIM (User Identity Module) on which the IC chip according to any one of claims 1 to 3 is mounted .

請求項5に記載の発明は、請求項4に記載のUIMを搭載した携帯端末であるThe invention described in claim 5 is a mobile terminal equipped with the UIM described in claim 4.

請求項6に記載の発明は、複数のインターフェイスに対応した処理手段と、データを記憶するデータ記憶領域と前記データをバックアップするためのバックアップ領域と、を有する不揮発性メモリと、第1の前記インターフェイスを用いた処理により受信されたデータを前記データ記憶領域に書き込む際に前記データ記憶領域に記憶されているデータを前記バックアップ領域にバックアップし、前記第1の前記インターフェイスを用いた処理が中断された場合には、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理を行う制御手段と、を備えるICチップにおける処理方法であって、前記制御手段が、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、当該第2の前記インターフェイスを用いた処理に必要なデータが前記バックアップ領域にバックアップされているか否かを判定し、前記バックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うことを特徴とする。 The invention according to claim 6 is a non-volatile memory having processing means corresponding to a plurality of interfaces, a data storage area for storing data, and a backup area for backing up the data, and the first interface When data received by processing using the data is written to the data storage area, the data stored in the data storage area is backed up to the backup area, and the process using the first interface is interrupted In this case, the processing method in the IC chip includes a control means for performing processing for writing back the data backed up in the backup area to the data storage area, and the control means backs up to the backup area. The stored data is written back to the data storage area In processing, when processing using the second interface different from the first interface is activated, whether data necessary for processing using the second interface is backed up in the backup area If the backup is not performed, the process using the second interface is prioritized over the write-back process.

請求項7に記載のICチップ用処理プログラムの発明は、複数のインターフェイスに対応した処理手段と、データを記憶するデータ記憶領域と前記データをバックアップするためのバックアップ領域と、を有する不揮発性メモリと、第1の前記インターフェイスを用いた処理により受信されたデータを前記データ記憶領域に書き込む際に前記データ記憶領域に記憶されているデータを前記バックアップ領域にバックアップし、前記第1の前記インターフェイスを用いた処理が中断された場合には、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理を行う制御手段と、を備えるICチップに含まれるコンピュータを、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、当該第2の前記インターフェイスを用いた処理に必要なデータが前記バックアップ領域にバックアップされているか否かを判定し、前記バックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うように機能させることを特徴とする。 The invention of a processing program for an IC chip according to claim 7 is a non-volatile memory comprising processing means corresponding to a plurality of interfaces, a data storage area for storing data, and a backup area for backing up the data. When the data received by the processing using the first interface is written to the data storage area, the data stored in the data storage area is backed up to the backup area, and the first interface is used. And a control means for performing processing for writing back the data backed up in the backup area to the data storage area when the process is interrupted, the computer included in the IC chip is backed up to the backup area. The data stored in the data storage In the process of writing back to the area, when a process using the second interface different from the first interface is started, data necessary for the process using the second interface is backed up to the backup area. In the case where the backup is not performed, the process using the second interface is prioritized over the write-back process.

本発明によれば、処理中断によりトランザクションが行われた場合であっても、処理時間制約が厳しい方のインターフェイスを用いた処理を正常に行うことができる。   According to the present invention, even when a transaction is performed due to a process interruption, it is possible to normally perform a process using an interface with a stricter processing time constraint.

本実施形態に係る携帯端末の概要構成例を示すブロック図である。It is a block diagram which shows the example of a schematic structure of the portable terminal which concerns on this embodiment. UIM13の概要構成例を示すブロック図である。It is a block diagram which shows the example of a schematic structure of UIM13. トランザクションにおいて、データ記憶領域、バックアップ領域、及びログ記憶領域に記憶されるデータの遷移例を示す図である。It is a figure which shows the example of a transition of the data memorize | stored in a data storage area, a backup area, and a log storage area in a transaction. UIM13のCPU131におけるトランザクションが中断された場合の優先処理を示すフローチャートである。It is a flowchart which shows the priority process when the transaction in CPU131 of UIM13 is interrupted.

以下、図面を参照して本発明の実施形態について詳細に説明する。以下に説明する実施形態は、携帯端末に対して本発明を適用した場合の実施の形態である。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The embodiment described below is an embodiment when the present invention is applied to a mobile terminal.

先ず、図1を参照して、本実施形態に係る携帯端末の構成及び機能概要について説明する。   First, with reference to FIG. 1, the configuration and functional overview of the mobile terminal according to the present embodiment will be described.

図1は、本実施形態に係る携帯端末の概要構成例を示すブロック図である。図1に示すように、携帯端末1は、携帯端末1の機能を担うコントローラ11、CLF12、及びUIM13(本発明のICチップの一例)等を備えて構成されている。なお、携帯端末1には、例えば操作キー、ディスプレイ、スピーカ、及び移動体通信部等を備える携帯電話機やPDA等を適用できる。   FIG. 1 is a block diagram illustrating a schematic configuration example of a mobile terminal according to the present embodiment. As shown in FIG. 1, the mobile terminal 1 includes a controller 11, a CLF 12, and a UIM 13 (an example of an IC chip according to the present invention) that are responsible for the functions of the mobile terminal 1. For example, a mobile phone, a PDA, or the like including operation keys, a display, a speaker, a mobile communication unit, and the like can be applied to the mobile terminal 1.

コントローラ11は、図示しないが、CPU(Central Processing Unit)、各種プログラム及びデータを記憶するROM(Read Only Memory)、データの書き換え可能な不揮発性メモリ、データを一時記憶するRAM(Random Access Memory)、及びUIM13との間のインターフェイスを担うI/Oポート等を備えている。なお、不揮発性メモリは、例えばフラッシュメモリやEEPROM(Electrical Erasable Programmable Read Only Memory)から構成される。コントローラ11は、UIM13との間でインターフェイスを介して通信可能になっている。そして、コントローラ11は、携帯端末1の通信(移動体通信網やインターネットを介して行われる通信)処理や携帯端末1のユーザからの操作キーを介した操作指示に応じて各種処理を実行する。このような処理の中で、コントローラ11は、例えば暗号化処理や認証処理等に係るコマンド信号をインターフェイスを介してUIM13へ送信する。また、コントローラ11は、例えば、電源ON、又はUIM13との間で通信エラーが発生した場合に、インターフェイスのリセット信号をUIM13へ送信するようになっている。   Although not shown, the controller 11 includes a CPU (Central Processing Unit), a ROM (Read Only Memory) for storing various programs and data, a rewritable nonvolatile memory, a RAM (Random Access Memory) for temporarily storing data, And an I / O port and the like that serve as an interface with the UIM 13. The non-volatile memory is composed of, for example, a flash memory or an EEPROM (Electrical Erasable Programmable Read Only Memory). The controller 11 can communicate with the UIM 13 via an interface. And the controller 11 performs various processes according to the communication (communication performed via a mobile communication network and the internet) process of the portable terminal 1, and the operation instruction from the user of the portable terminal 1 via the operation key. In such processing, the controller 11 transmits a command signal related to, for example, encryption processing and authentication processing to the UIM 13 via the interface. Further, the controller 11 is configured to transmit an interface reset signal to the UIM 13 when a communication error occurs between the controller 11 and the UIM 13, for example.

CLF12は、NFCの規格で規定される非接触通信を行う非接触型ICチップであり、図示しないが、CPU、各種プログラム及びデータを記憶するROM、データの書き換え可能な不揮発性メモリ、データを一時記憶するRAM、及びUIM13との間のインターフェイスを担うI/Oポート(SWIO)等を備えている。また、CLF12は、非接触通信のフィールド内で非接触リーダ2との間で各種信号の送受信を行うためのアンテナ12aに接続されている。そして、ユーザが携帯端末1を非接触リーダ2に翳すと、非接触リーダ2から送信されたサービス要求に係るコマンド信号をインターフェイスを介してUIM13へ送信するようになっている。   The CLF 12 is a contactless IC chip that performs contactless communication defined by the NFC standard. Although not shown, the CPU, a ROM that stores various programs and data, a rewritable nonvolatile memory, and data temporarily A RAM to be stored, an I / O port (SWIO) that performs an interface with the UIM 13, and the like are provided. The CLF 12 is connected to an antenna 12a for transmitting / receiving various signals to / from the non-contact reader 2 in the field of non-contact communication. When the user places the portable terminal 1 on the contactless reader 2, a command signal related to a service request transmitted from the contactless reader 2 is transmitted to the UIM 13 via the interface.

UIM13は、UICC(Universal Integrated Circuit Card)の一つであり、従来のSIM(Subscriber Identity Module)をベースに機能を拡張された接触型ICチップを搭載する。図2は、UIM13の概要構成例を示すブロック図である。UIM13は、図1に示すように、CPU131、各種プログラム及びデータを記憶するROM132、データの書き換え可能な不揮発性メモリ133、データを一時記憶するRAM134、コントローラ11との間の接触通信用インターフェイス(第1のインターフェイスの一例)を担うI/Oポート、及びCLF12との間の非接触通信用インターフェイス(第1のインターフェイスとは異なる第2のインターフェイスの一例)を担うI/Oポート等を備えている。なお、CLF12とUIM13間の非接触通信用インターフェイスには、SWP(Single Wire Protocol)が適用される。また、非接触通信用インターフェイスは、プログラム間でデータをやり取りする手順や形式を定めたものであり、ソフトウェアとして動作するものである。   The UIM 13 is one of UICCs (Universal Integrated Circuit Cards), and is equipped with a contact type IC chip whose functions are expanded based on a conventional SIM (Subscriber Identity Module). FIG. 2 is a block diagram illustrating a schematic configuration example of the UIM 13. As shown in FIG. 1, the UIM 13 includes a CPU 131, a ROM 132 for storing various programs and data, a rewritable nonvolatile memory 133, a RAM 134 for temporarily storing data, and a contact communication interface (first interface). An I / O port that bears an example of one interface) and an I / O port that bears an interface for contactless communication with the CLF 12 (an example of a second interface different from the first interface). . Note that SWP (Single Wire Protocol) is applied to the non-contact communication interface between the CLF 12 and the UIM 13. The non-contact communication interface defines a procedure and a format for exchanging data between programs, and operates as software.

本発明についてコントローラ11、CLF12より受信されたデータは、UIM13の接触用端子を介して通信される。例えば、コントローラ11より受信したデータは、UIM13の金属端子におけるコントローラ11受信用のI/Oポートを介して受信される。そして、UIM13のCPU131が接触通信用インターフェイスに対応した処理手段として、接触通信用インターフェイス処理を実行することとなる。また、CLF12より受信したデータは、UIM13の金属端子におけるコントローラ11受信用のI/Oポートとは別のCLF12受信用のI/Oポートを介して受信される。そして、UIMのCPU131が非接触通信用インターフェイスに対応した処理手段として、非接触通信用インターフェイス処理を実行することとなる。   Data received from the controller 11 and the CLF 12 according to the present invention is communicated via a contact terminal of the UIM 13. For example, data received from the controller 11 is received via an I / O port for receiving the controller 11 at a metal terminal of the UIM 13. Then, the CPU 131 of the UIM 13 executes the contact communication interface process as a processing unit corresponding to the contact communication interface. The data received from the CLF 12 is received via a CLF 12 receiving I / O port different from the controller 11 receiving I / O port at the metal terminal of the UIM 13. The UIM CPU 131 executes non-contact communication interface processing as processing means corresponding to the non-contact communication interface.

また、UIM13のROM132又は不揮発性メモリ133に記憶されるプログラムの例としては、オペレーティングシステム(以下、「OS」という)、ミドルウェア、及び複数種類のアプリケーションプログラム、及び本発明のICチップ用処理プログラムがある。なお、ミドルウェアは、OSとアプリケーションプログラムの中間的な処理を行う。なお、本発明のICチップ用処理プログラムは、OS、ミドルウェアまたはアプリケーションプログラムの一機能として組み込まれてもよい。また、ミドルウェア、及びアプリケーションプログラム(以下、「アプリケーション」という)は、CPU131により実行される複数のコマンド(命令)及びそれらの実行順序を規定するプログラムである。アプリケーションには、接触通信用アプリケーションと非接触通信用アプリケーションとがある。同様に、ミドルウェアにも、接触通信用ミドルウェアと非接触通信用ミドルウェアとがある。なお、本発明のICチップ用処理プログラムは、OS、ミドルウェア、アプリケーションレベルの何れでも利用することが可能である。   Examples of programs stored in the ROM 132 or the nonvolatile memory 133 of the UIM 13 include an operating system (hereinafter referred to as “OS”), middleware, a plurality of types of application programs, and an IC chip processing program of the present invention. is there. The middleware performs an intermediate process between the OS and the application program. The IC chip processing program of the present invention may be incorporated as a function of the OS, middleware, or application program. The middleware and application program (hereinafter referred to as “application”) are programs that specify a plurality of commands (instructions) executed by the CPU 131 and their execution order. Applications include a contact communication application and a non-contact communication application. Similarly, middleware includes contact communication middleware and non-contact communication middleware. The IC chip processing program of the present invention can be used at any of the OS, middleware, and application level.

また、UIM13の不揮発性メモリ133には、データを記憶するデータ記憶領域と、データをバックアップするためのバックアップ領域と、バックアップに関するログを記憶するためのログ記憶領域と、を有する。なお、データ記憶領域には、電話番号や加入者ID等の個人情報、及び電子マネーの残高情報等のデータが記憶されている。   The non-volatile memory 133 of the UIM 13 includes a data storage area for storing data, a backup area for backing up data, and a log storage area for storing a log related to backup. The data storage area stores personal information such as telephone numbers and subscriber IDs, and data such as electronic money balance information.

UIM13のCPU131は、本発明のICチップ用処理プログラムを実行することにより本発明における「制御手段」として機能する。また、UIM13のCPU131は、OS実行の下、接触通信用インターフェイスを用いた処理と、非接触通信用インターフェイスを用いた処理を行う。接触通信用インターフェイスを用いた処理では、例えば、コントローラ11から接触通信用インターフェイスを介して受信されたコマンド信号が示すコマンド(接触通信用アプリケーションで規定されたコマンド)に対応するコマンド処理が行われる。一方、非接触通信用インターフェイスを用いた処理では、例えば、CLF12から非接触通信用インターフェイスを介して受信されたコマンド信号が示すコマンド(非接触通信用アプリケーションで規定されたコマンド)に対応するコマンド処理が行われる。   The CPU 131 of the UIM 13 functions as the “control unit” in the present invention by executing the IC chip processing program of the present invention. The CPU 131 of the UIM 13 performs processing using the contact communication interface and processing using the non-contact communication interface under execution of the OS. In the processing using the contact communication interface, for example, command processing corresponding to a command (command defined by the contact communication application) indicated by the command signal received from the controller 11 via the contact communication interface is performed. On the other hand, in the process using the non-contact communication interface, for example, the command process corresponding to the command (command defined by the non-contact communication application) indicated by the command signal received from the CLF 12 via the non-contact communication interface. Is done.

ここで、上記コマンド処理の例としては、接触通信用インターフェイス又は非接触通信用インターフェイスを介して受信されたデータをデータ記憶領域に書き込む書き込み処理が挙げられる。なお、この書き込み処理は、OS、ミドルウェアまたはアプリケーションで行われる。この書き込み処理では、例えば、複数の情報を含むデータブロック(例えば、数十〜数百バイト)の単位でデータ記憶領域にデータが書き込まれる。また、この書き込み処理では、上述したトランザクションが行われる。このトランザクションにおいて、CPU131は、データ記憶領域にデータを書き込む際に当該データ記憶領域に記憶されているデータをバックアップ領域にバックアップする。更に、CPU131は、データをバックアップする際に、バックアップ対象となるデータの当該バックアップに関するログデータをログ記憶領域に記憶する。このログデータには、例えばバックアップ元(書き戻し先)のアドレス、バックアップ先(書き戻し元)のアドレス、書き戻すデータ量(固定値で処理する場合は不要)、優先度フラグ、状態フラグ、及び検証用のデータ(例えば、CRC(巡回冗長検査)データ、ただし、改ざん検出の必要がなければ不要)等が含まれる。ここで、バックアップ元のアドレスは、バックアップ対象となるデータが記憶されているデータ記憶領域のアドレスである。また、バックアップ先のアドレスは、データがバックアップされているバックアップ領域のアドレスである。また、優先度フラグは、バックアップされたデータを優先して書き戻すか否か示す情報である。例えば、優先度フラグは、優先して書き戻す(言い換えれば、ただちに書き戻す)ことを示す”0”、または優先して書き戻さない(言い換えれば、あとで書き戻す)ことを示す”1”で表される。或いは、優先度フラグは、バックアップ元の種別や分類を示す値等であってもよい。また、状態フラグは、トランザクションが正常終了したか否かを示す情報である。例えば、状態フラグは、トランザクションが未終了であることを示す”00”、またはトランザクションが正常終了したことを示す”FF”で表される。なお、このログデータは、バックアップ対象となるデータが複数ある場合、当該データ毎に区別されて記憶されてもよいし、区別されずに一つのログデータとして記憶されてもよい。   Here, as an example of the command process, there is a write process for writing data received via the contact communication interface or the non-contact communication interface into the data storage area. This writing process is performed by the OS, middleware, or application. In this writing process, for example, data is written to the data storage area in units of data blocks (for example, several tens to several hundred bytes) including a plurality of pieces of information. In this writing process, the above-described transaction is performed. In this transaction, the CPU 131 backs up the data stored in the data storage area to the backup area when writing data in the data storage area. Furthermore, when the CPU 131 backs up data, it stores log data related to the backup of the data to be backed up in the log storage area. The log data includes, for example, a backup source (write-back destination) address, a backup destination (write-back source) address, a data amount to be written back (not required when processing with a fixed value), a priority flag, a status flag, Data for verification (for example, CRC (Cyclic Redundancy Check) data, which is unnecessary if tampering detection is not necessary), etc. are included. Here, the backup source address is an address of a data storage area in which data to be backed up is stored. The backup destination address is an address of a backup area where data is backed up. The priority flag is information indicating whether or not to write back the backed up data with priority. For example, the priority flag is “0” indicating that writing is preferentially written back (in other words, immediately writing back), or “1” indicating that writing is not preferentially written (in other words, writing back later). expressed. Alternatively, the priority flag may be a value indicating the type or classification of the backup source. The status flag is information indicating whether or not the transaction is normally completed. For example, the status flag is represented by “00” indicating that the transaction has not ended or “FF” indicating that the transaction has ended normally. When there are a plurality of data to be backed up, this log data may be stored separately for each data, or may be stored as one log data without being distinguished.

図3は、トランザクションにおいて、データ記憶領域、バックアップ領域、及びログ記憶領域に記憶されるデータの遷移例を示す図である。なお、図3(A)に示す例において、3つのデータD1x〜D3x(1つのデータは例えば128バイトのデータブロックからなる)がデータ記憶領域に既に記憶されており、このうち、データD1x及びデータD3xが書き換え対象のデータであるものとする。トランザクション開始命令があるとトランザクションが開始され、先ず、図3(B)に示すように、データD1xがバックアップ領域にバックアップされ(一旦、RAM134に記憶された後、バックアップ領域に記憶)、当該バックアップに関するログデータLog1がログ記憶領域に記憶される。そして、データ記憶領域に既に記憶されているデータD1xが新しいデータD1yに書き換えられる。次いで、図3(C)に示すように、データD3xがバックアップ領域にバックアップされ(一旦、RAM134に記憶された後、バックアップ領域に記憶)、当該バックアップに関するログデータLog3がログ記憶領域に記憶される。そして、データ記憶領域に既に記憶されているデータD3xが新しいデータD3yに書き換えられる。そして、トランザクション終了命令があると、図3(D)に示すように、ログデータLog3に含まれる状態フラグが、トランザクションが正常終了したことを示す情報(コミット済)に書き換えられ(トランザクションが未終了であることを示す情報が上書きされる)、バックアップ領域にバックアップされていたデータD1x及びデータD3xが削除される。このようなトランザクションが正常に終了せず中断された場合において、上述した状態フラグがトランザクションが正常終了したことを示していないとき、CPU131は、バックアップ領域にバックアップされているデータをデータ記憶領域に書き戻す処理を行う。ところで、接触通信用インターフェイスを用いた処理が中断され、当該処理においてバックアップ領域にバックアップされたデータをデータ記憶領域に書き戻す処理中に、非接触通信用インターフェイスを用いた処理が起動した場合に(つまり、接触通信用インターフェイスを用いた処理で用いられたデータを書き戻す処理と非接触通信用インターフェイスを用いた処理が重なった場合に)、通常通り書き戻し処理を行っていると、処理時間制約の厳しい非接触通信用インターフェイスを用いた処理が正常に行われない可能性がある。   FIG. 3 is a diagram illustrating a transition example of data stored in the data storage area, the backup area, and the log storage area in the transaction. In the example shown in FIG. 3A, three pieces of data D1x to D3x (one piece of data is composed of, for example, a 128-byte data block) are already stored in the data storage area. Among these pieces of data, data D1x and data Assume that D3x is data to be rewritten. When there is a transaction start command, the transaction is started. First, as shown in FIG. 3B, the data D1x is backed up in the backup area (once stored in the RAM 134 and then stored in the backup area). Log data Log1 is stored in the log storage area. Then, the data D1x already stored in the data storage area is rewritten with new data D1y. Next, as shown in FIG. 3C, the data D3x is backed up in the backup area (once stored in the RAM 134 and then stored in the backup area), and log data Log3 relating to the backup is stored in the log storage area. . Then, the data D3x already stored in the data storage area is rewritten with new data D3y. When there is a transaction end instruction, as shown in FIG. 3D, the status flag included in the log data Log3 is rewritten with information indicating that the transaction has been normally completed (committed) (the transaction has not been completed). Data D1x and data D3x backed up in the backup area are deleted. When such a transaction is interrupted without being terminated normally, and the status flag described above does not indicate that the transaction has terminated normally, the CPU 131 writes the data backed up in the backup area to the data storage area. Perform processing to return. By the way, when the process using the contact communication interface is interrupted and the process using the non-contact communication interface is activated during the process of writing back up the data backed up in the backup area to the data storage area in the process ( In other words, if the process of writing back the data used in the process using the contact communication interface and the process using the non-contact communication interface overlap) There is a possibility that the processing using the severe contactless communication interface may not be performed normally.

そこで、本実施形態に係るUIM13のCPU131は、接触通信用インターフェイスを用いた処理が中断された場合にバックアップ領域にバックアップされたデータをデータ記憶領域に書き戻す処理において、非接触通信用インターフェイスを用いた処理が起動したとき、当該非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされているか否かを判定し、当該処理に必要なデータがバックアップされていない場合には、上記書き戻す処理より非接触通信用インターフェイスを用いた処理を優先して行う。このような処理を、優先処理という。   Therefore, the CPU 131 of the UIM 13 according to the present embodiment uses the non-contact communication interface in the process of writing the data backed up in the backup area back to the data storage area when the process using the contact communication interface is interrupted. If the data required for the processing using the non-contact communication interface is backed up in the backup area and the data required for the processing is not backed up, The process using the non-contact communication interface is prioritized over the process of rewriting. Such processing is called priority processing.

以下に、トランザクションが中断された場合の優先処理を、図4を参照して詳しく説明する。図4は、UIM13のCPU131におけるトランザクションが中断された場合の優先処理を示すフローチャートである。図4に示す処理は、接触通信用インターフェイスを用いた処理が中断されログデータ中の状態フラグが例えば”FF”である場合において、非接触通信用インターフェイスを用いた処理が起動したときに開始される。このようなケースとしては、例えば、ユーザによる携帯端末1の操作中(操作指示に応じた書き込み処理が行われているとき)に電源がOFF状態(例えば携帯端末のバッテリー残量が無くなることによる)になり、この直後にユーザが携帯端末1を、例えば、改札機又は非接触認証ゲートに備えられる非接触リーダ2に翳した(非接触通信用インターフェイスを用いた処理開始)場合が考えられる。   In the following, priority processing when a transaction is interrupted will be described in detail with reference to FIG. FIG. 4 is a flowchart showing priority processing when a transaction in the CPU 131 of the UIM 13 is interrupted. The process shown in FIG. 4 is started when the process using the non-contact communication interface starts when the process using the contact communication interface is interrupted and the status flag in the log data is “FF”, for example. The As such a case, for example, when the user operates the mobile terminal 1 (when writing processing according to an operation instruction is performed), the power is turned off (for example, due to the battery remaining in the mobile terminal running out). Immediately after this, a case where the user deceives the portable terminal 1 as, for example, a contactless reader 2 provided in a ticket gate or a contactless authentication gate (processing start using a contactless communication interface) can be considered.

図4に示す処理が開始されると、UIM13のCPU131は、ログ記憶領域に記憶されているログデータを確認し(ステップS1)、非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされているか否かを判定する(ステップS2)。例えば、CPU131は、ログデータに含まれる優先度フラグを参照して、優先して書き戻すデータがバックアップ領域にバックアップされているか否かを判定する。例えば、優先度フラグが優先して書き戻すことを示す”0”である場合、優先して書き戻すデータがバックアップ領域にバックアップされていると判定される。つまり、この場合、非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされていると判定される。一方、例えば、優先度フラグが優先して書き戻さないことを示す”1”である場合、優先して書き戻すデータがバックアップ領域にバックアップされていないと判定される。つまり、この場合、非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされていないと判定される。   When the process shown in FIG. 4 is started, the CPU 131 of the UIM 13 checks the log data stored in the log storage area (step S1), and the data necessary for the process using the non-contact communication interface is stored in the backup area. It is determined whether it has been backed up (step S2). For example, the CPU 131 refers to the priority flag included in the log data and determines whether the data to be preferentially written back is backed up in the backup area. For example, when the priority flag is “0” indicating that writing is preferentially written back, it is determined that the data to be written back preferentially is backed up in the backup area. That is, in this case, it is determined that the data necessary for processing using the non-contact communication interface is backed up in the backup area. On the other hand, for example, when the priority flag is “1” indicating that the data is not rewritten with priority, it is determined that the data to be rewritten with priority is not backed up in the backup area. That is, in this case, it is determined that data necessary for processing using the contactless communication interface is not backed up in the backup area.

なお、優先度フラグがバックアップ元の種別や分類を示す値等である場合、UIM13のCPU131は、当該値に基づき、バックアップされたデータのデータ記憶領域(バックアップ元)が優先して書き戻す必要があるデータ記憶領域(接触通信用アプリケーションだけでなく非接触通信用アプリケーションでも使用されるデータ領域)であるか否かを判定する。そして、バックアップされたデータのデータ記憶領域が優先して書き戻す必要があるデータ記憶領域である場合、非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされていると判定される。一方、バックアップされたデータのデータ記憶領域が優先して書き戻す必要があるデータ記憶領域でない場合、非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされていないと判定される。   When the priority flag is a value indicating the type or classification of the backup source, the CPU 131 of the UIM 13 needs to write back the data storage area (backup source) of the backed up data with priority based on the value. It is determined whether or not the data storage area is a data area (data area used not only for the contact communication application but also for the non-contact communication application). If the data storage area of the backed up data is a data storage area that needs to be written back preferentially, it is determined that the data required for processing using the non-contact communication interface is backed up in the backup area. The On the other hand, if the data storage area of the backed-up data is not a data storage area that needs to be written back preferentially, it is determined that the data necessary for processing using the non-contact communication interface has not been backed up to the backup area .

そして、UIM13のCPU131は、非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされていると判定した場合には(ステップS2:YES)、当該判定されたデータをバックアップ領域からデータ記憶領域に書き戻して(ステップS3)、ステップS4に進む。例えば、図3に示すデータD1xが非接触通信用インターフェイスを用いた処理に必要なデータであるとすると、図3(E)に示すように、当該データD1xがデータ記憶領域に書き戻されバックアップ領域から削除される。一方、UIM13のCPU131は、非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされていないと判定した場合には(ステップS2:NO)、当該データの書き戻しは行わずにステップS4に進む。例えば、図3に示すデータD3xが非接触通信用インターフェイスを用いた処理に必要なデータでないとすると、図3(E)に示すように、当該データD3xがデータ記憶領域に書き戻されず、バックアップ領域にバックアップされたままとなる。   If the CPU 131 of the UIM 13 determines that data necessary for processing using the non-contact communication interface is backed up in the backup area (step S2: YES), the determined data is transferred from the backup area. Writing back to the data storage area (step S3), the process proceeds to step S4. For example, if the data D1x shown in FIG. 3 is data necessary for processing using the non-contact communication interface, the data D1x is written back to the data storage area as shown in FIG. Deleted from. On the other hand, when the CPU 131 of the UIM 13 determines that the data necessary for the processing using the non-contact communication interface is not backed up in the backup area (step S2: NO), the data is not written back. Proceed to step S4. For example, if the data D3x shown in FIG. 3 is not necessary for processing using the non-contact communication interface, the data D3x is not written back to the data storage area as shown in FIG. Will remain backed up.

ステップS4では、UIM13のCPU131は、書き戻す処理を終了するか否かを判定し、書き戻す処理を終了しないと判定した場合には(ステップS4:NO)、ステップS1に戻る。例えば、バックアップ領域に記憶されているデータのうち、上記ステップS2で未だ判定されていないデータがある場合には、書き戻す処理を終了せずに、ステップS1に戻り、未だ判定されていないデータについて上記と同様の処理を行う。   In step S4, the CPU 131 of the UIM 13 determines whether or not to end the writing back process. If it is determined not to end the writing back process (step S4: NO), the process returns to step S1. For example, if there is data that has not been determined in step S2 among the data stored in the backup area, the process returns to step S1 without ending the write-back process, and the data that has not been determined yet. The same processing as above is performed.

一方、UIM13のCPU131は、書き戻す処理を終了すると判定した場合には(ステップS4:YES)、図4に示す処理を終了し、非接触通信用インターフェイスを用いた処理に移行する。なお、上記ステップS3で書き戻されなかった例えばデータD3xは、図3(F)に示すように、例えば接触通信用インターフェイスの再起動時にデータ記憶領域に書き戻されることになる。つまり、非接触通信用インターフェイスを用いた処理の起動時に元に戻せなかったデータについては例えば応答時間の余裕があるとき、もしくは当該データが必要となったときに元に戻せばよい。   On the other hand, if the CPU 131 of the UIM 13 determines that the write back process is to be terminated (step S4: YES), the process shown in FIG. 4 is terminated and the process proceeds to a process using the non-contact communication interface. For example, the data D3x that has not been written back in step S3 is written back to the data storage area when the contact communication interface is restarted, for example, as shown in FIG. In other words, data that could not be restored when the process using the non-contact communication interface was started may be restored, for example, when there is a response time margin or when the data becomes necessary.

以上説明したように、上記実施形態によれば、接触通信用インターフェイスを用いた処理が中断された場合にバックアップ領域にバックアップされたデータをデータ記憶領域に書き戻す処理において、非接触通信用インターフェイスを用いた処理が起動したとき、当該非接触通信用インターフェイスを用いた処理に必要なデータがバックアップ領域にバックアップされていなければ、上記書き戻す処理より非接触通信用インターフェイスを用いた処理を優先して行うように構成したので、処理時間制約が厳しい非接触通信用インターフェイスを用いた処理を正常に行うことができる(エラーが生じない)。   As described above, according to the above embodiment, in the process of writing back up the data backed up in the backup area to the data storage area when the process using the contact communication interface is interrupted, the non-contact communication interface is If the data required for processing using the contactless communication interface is not backed up in the backup area when the processing used is started, the processing using the contactless communication interface is given priority over the write back processing. Since it is configured to perform, processing using the non-contact communication interface with severe processing time restrictions can be performed normally (no error occurs).

なお、上記実施形態においては、本発明における第1のインターフェイスが接触通信用インターフェイスであり、本発明における第2のインターフェイスが非接触通信用インターフェイスである場合を例にとって説明したが、処理時間制約が所定値以上厳しい第2のインターフェイスであれば非接触通信用インターフェイスでなくとも本発明を適用可能であり同様の効果を奏することができる。また、別の例として、本発明における第1のインターフェイスと第2のインターフェイスが共に非接触通信用インターフェイスであっても本発明を適用可能であり同様の効果を奏することができる。   In the above embodiment, the case where the first interface in the present invention is a contact communication interface and the second interface in the present invention is a non-contact communication interface has been described as an example. If the second interface is stricter than the predetermined value, the present invention can be applied even if it is not a non-contact communication interface, and the same effect can be obtained. As another example, the present invention can be applied even if both the first interface and the second interface in the present invention are non-contact communication interfaces, and the same effects can be obtained.

また、上記実施形態においては、本発明のICチップを携帯端末1に搭載されたUIM13に適用した場合の例を説明したが、プリペイドカード、クレジットカード、キャッシュカード、社員用カード、又は交通用カード等の所謂、ICカードに搭載されるICチップ(複数のインターフェイスに対応した処理手段を有する)に対しても適用可能である。この場合の優先処理も上記と同様であるが、ケースとしては、例えば、ICカードによる認証機能を有するパーソナルコンピュータ等(例えば、パーソナルコンピュータに接続されたICカード装着機器)からユーザがICカードを引き抜き(これにより、接触通信用インターフェイスを用いた処理が中断)、当該ユーザがそのICカードを用いてドア等の非接触認証ゲートを通過するために、当該ICカードを非接触認証ゲートに備えられる非接触リーダに翳した(非接触通信用インターフェイスを用いた処理開始)場合が考えられ、これにより、図4に示す処理が行われることになる。   Moreover, in the said embodiment, although the example at the time of applying the IC chip of this invention to UIM13 mounted in the portable terminal 1 was demonstrated, a prepaid card, a credit card, a cash card, an employee card, or a traffic card It is also applicable to so-called IC chips (having processing means corresponding to a plurality of interfaces) mounted on an IC card. The priority processing in this case is the same as described above, but as a case, for example, the user pulls out the IC card from a personal computer or the like having an IC card authentication function (for example, an IC card mounting device connected to the personal computer). (Thus, the process using the contact communication interface is interrupted), and the user can pass through the non-contact authentication gate such as a door by using the IC card. A case where the user is dressed as a contact reader (start of processing using a non-contact communication interface) is considered, and the processing shown in FIG. 4 is performed.

1 携帯端末
2 非接触リーダ
11 コントローラ
12 CLF
13 UIM
131 CPU
132 ROM
133 不揮発性メモリ
134 RAM
1 mobile terminal 2 non-contact reader 11 controller 12 CLF
13 UIM
131 CPU
132 ROM
133 Non-volatile memory 134 RAM

Claims (7)

複数のインターフェイスに対応した処理手段と、
データを記憶するデータ記憶領域と前記データをバックアップするためのバックアップ領域と、を有する不揮発性メモリと、
第1の前記インターフェイスを用いた処理により受信されたデータを前記データ記憶領域に書き込む際に前記データ記憶領域に記憶されているデータを前記バックアップ領域にバックアップし、前記第1の前記インターフェイスを用いた処理が中断された場合には、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理を行う制御手段と、
を備え、
前記制御手段は、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、当該第2の前記インターフェイスを用いた処理に必要なデータが前記バックアップ領域にバックアップされているか否かを判定し、前記バックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うことを特徴とするICチップ。
Processing means for multiple interfaces;
A non-volatile memory having a data storage area for storing data and a backup area for backing up the data;
When data received by processing using the first interface is written to the data storage area, the data stored in the data storage area is backed up to the backup area, and the first interface is used. If the process is interrupted, control means for performing a process of writing back the data backed up in the backup area to the data storage area;
With
In the process of writing back the data backed up in the backup area to the data storage area, the control means, when a process using the second interface different from the first interface is activated, It is determined whether data necessary for processing using the second interface has been backed up in the backup area. If the data has not been backed up, the second interface is used in the writing back processing. An IC chip characterized by prioritizing the processing performed.
請求項1に記載のICチップにおいて、
前記第1の前記インターフェイスは、接触通信用インターフェイスであり、
前記第2の前記インターフェイスは、非接触通信用インターフェイスであることを特徴とするICチップ。
The IC chip according to claim 1,
The first interface is a contact communication interface;
2. The IC chip according to claim 2, wherein the second interface is a contactless communication interface.
請求項1又は2に記載のICチップにおいて、
前記制御手段は、前記データをバックアップする際に、バックアップ対象となる前記データを優先して書き戻すか否か示す情報を含むログデータを前記不揮発性メモリに記憶しておき、
前記制御手段は、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、前記不揮発性メモリに記憶されている前記ログデータを参照して優先して書き戻すデータが前記バックアップ領域にバックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うことを特徴とするICチップ。
The IC chip according to claim 1 or 2,
Wherein, said data when backing up the stores the log data in the non-volatile memory containing information indicating whether or not writing back in favor of the data to be backed up object,
In the process of writing back the data backed up in the backup area to the data storage area, the control means, when a process using the second interface different from the first interface is activated, When the data to be written back with priority by referring to the log data stored in the non-volatile memory is not backed up in the backup area, the processing using the second interface is performed rather than the writing back processing. An IC chip characterized in that it is given priority.
請求項1乃至3の何れか一項に記載のICチップを搭載したUIM A UIM on which the IC chip according to any one of claims 1 to 3 is mounted . 請求項4に記載のUIMを搭載した携帯端末 A portable terminal equipped with the UIM according to claim 4 . 複数のインターフェイスに対応した処理手段と、データを記憶するデータ記憶領域と前記データをバックアップするためのバックアップ領域と、を有する不揮発性メモリと、第1の前記インターフェイスを用いた処理により受信されたデータを前記データ記憶領域に書き込む際に前記データ記憶領域に記憶されているデータを前記バックアップ領域にバックアップし、前記第1の前記インターフェイスを用いた処理が中断された場合には、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理を行う制御手段と、を備えるICチップにおける処理方法であって、
前記制御手段が、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、当該第2の前記インターフェイスを用いた処理に必要なデータが前記バックアップ領域にバックアップされているか否かを判定し、前記バックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うことを特徴とするICチップにおける処理方法。
Data received by processing using the first interface, non-volatile memory having processing means corresponding to a plurality of interfaces, a data storage area for storing data, and a backup area for backing up the data When data is stored in the data storage area, the data stored in the data storage area is backed up in the backup area, and when the processing using the first interface is interrupted, the data is backed up in the backup area. Control means for performing processing for writing back the data being written back to the data storage area,
In the process in which the control means writes back the data backed up in the backup area to the data storage area, when a process using the second interface different from the first interface is activated, It is determined whether data necessary for processing using the second interface has been backed up in the backup area. If the data has not been backed up, the second interface is used in the writing back processing. A processing method in an IC chip, characterized in that the processing performed is given priority.
複数のインターフェイスに対応した処理手段と、データを記憶するデータ記憶領域と前記データをバックアップするためのバックアップ領域と、を有する不揮発性メモリと、第1の前記インターフェイスを用いた処理により受信されたデータを前記データ記憶領域に書き込む際に前記データ記憶領域に記憶されているデータを前記バックアップ領域にバックアップし、前記第1の前記インターフェイスを用いた処理が中断された場合には、前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理を行う制御手段と、を備えるICチップに含まれるコンピュータを、
前記バックアップ領域にバックアップされている前記データを前記データ記憶領域に書き戻す処理において、前記第1の前記インターフェイスとは異なる第2の前記インターフェイスを用いた処理が起動したとき、当該第2の前記インターフェイスを用いた処理に必要なデータが前記バックアップ領域にバックアップされているか否かを判定し、前記バックアップされていない場合には、前記書き戻す処理より前記第2の前記インターフェイスを用いた処理を優先して行うように機能させることを特徴とするICチップ用処理プログラム。
Data received by processing using the first interface, non-volatile memory having processing means corresponding to a plurality of interfaces, a data storage area for storing data, and a backup area for backing up the data When data is stored in the data storage area, the data stored in the data storage area is backed up in the backup area, and when the processing using the first interface is interrupted, the data is backed up in the backup area. A computer included in an IC chip, comprising: control means for performing a process of writing back the data being written back to the data storage area;
In the process of writing back the data backed up in the backup area to the data storage area, when a process using the second interface different from the first interface is activated, the second interface It is determined whether or not data necessary for processing using the data is backed up in the backup area. If the data is not backed up, the processing using the second interface is prioritized over the writing back processing. An IC chip processing program characterized in that the program is made to function as described above.
JP2011170969A 2011-08-04 2011-08-04 IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip Active JP5754287B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011170969A JP5754287B2 (en) 2011-08-04 2011-08-04 IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011170969A JP5754287B2 (en) 2011-08-04 2011-08-04 IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip

Publications (2)

Publication Number Publication Date
JP2013037430A JP2013037430A (en) 2013-02-21
JP5754287B2 true JP5754287B2 (en) 2015-07-29

Family

ID=47887017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011170969A Active JP5754287B2 (en) 2011-08-04 2011-08-04 IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip

Country Status (1)

Country Link
JP (1) JP5754287B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6307938B2 (en) * 2014-03-04 2018-04-11 大日本印刷株式会社 IC chip, command execution method, and IC chip program
JP6233134B2 (en) * 2014-03-28 2017-11-22 大日本印刷株式会社 Electronic information storage medium, information processing method, and information processing program
JP7089423B2 (en) * 2018-07-12 2022-06-22 ルネサスエレクトロニクス株式会社 Information processing device and control method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4281421B2 (en) * 2003-06-06 2009-06-17 ソニー株式会社 Information processing system, control method therefor, and computer program
JP2005258851A (en) * 2004-03-12 2005-09-22 Renesas Technology Corp Memory card
JP4580725B2 (en) * 2004-10-08 2010-11-17 大日本印刷株式会社 UIM IC card and small UIM
JP2009157756A (en) * 2007-12-27 2009-07-16 Toshiba Corp Information processing apparatus and data recovering method
JP2010182270A (en) * 2009-02-09 2010-08-19 Toshiba Corp Mobile electronic apparatus and data management method in mobile electronic apparatus

Also Published As

Publication number Publication date
JP2013037430A (en) 2013-02-21

Similar Documents

Publication Publication Date Title
TWI405211B (en) Flash memory storage system, controller and data protecting method thereof
US8266713B2 (en) Method, system and controller for transmitting and dispatching data stream
JP5754287B2 (en) IC chip, processing method in IC chip, UIM, portable terminal, and processing program for IC chip
US8595420B2 (en) Method for dispatching and transmitting data streams between host system and memory storage apparatus having non-volatile memory and smart card chip, memory controller, and memory storage apparatus
KR20150135753A (en) Ic card, electronic device and portable electronic device
US20110227708A1 (en) Portable electronic device, communication device, and command processing method
US20220245253A1 (en) Secure element and method for starting an application
JP5516323B2 (en) IC chip, IC chip initialization method, IC chip processing program, portable terminal
JP2012141754A (en) Ic chip, processing method in ic chip, processing program for ic chip, and portable terminal
CN104699514A (en) Remote-control end system updating method and device
JP2008310596A (en) Portable electronic equipment and control method for potable electronic equipment
JP5838713B2 (en) IC chip, UIM, processing method in IC chip, IC chip processing program, and portable terminal
JP5799754B2 (en) IC chip, processing method in IC chip, IC chip processing program, IC card, and portable terminal
JP2012093857A (en) Ic chip, memory initialization method for ic chip, processing program for ic chip, and portable terminal
US20090235365A1 (en) Data access system
JP4965909B2 (en) IC card
JP6828246B2 (en) Electronic information storage media, information processing methods, and information processing programs
JP5092370B2 (en) Portable information recording medium and program thereof
JP3701571B2 (en) Integrated circuit and IC card
JP5971713B2 (en) IC card
JP5066884B2 (en) Information recording medium with built-in CPU and program
JP4734838B2 (en) Information recording medium, program, and command execution control method
JP2018156387A (en) IC card, portable electronic device, program, processing device and processing system
JP6686725B2 (en) Electronic information storage medium, information processing method, and information processing program
JP6281302B2 (en) Information processing apparatus, IC card, and data processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140626

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150113

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150310

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150511

R150 Certificate of patent or registration of utility model

Ref document number: 5754287

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150