IC Card
Patent Information
- Application Number
- JP2021031663
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2025-02-19
- Estimated Expiration
- 2041-03-01
AI Technical Summary
【0013】 本発明によれば、データ読書き装置がICカードを活性化する処理段階において、ICカードが、不揮発性記憶手段に記憶しているエラー情報をデータ読書き装置に一括して送信する。そのため、特別なコマンドを使用せずともデータ読書き装置がICカードのエラー情報を取得できる。また、データ読書き装置がICカードのライフサイクルに依存せずにエラー情報を漏れなく取得することができるようになる効果がある。
Smart Images

Figure 0007631895000006 
Figure 0007631895000007 
Figure 0007631895000008
Abstract
Description
[Technical field]
[0001] The present invention relates to an IC card that outputs error information. [Background technology]
[0002] Conventionally, IC card data read / write devices obtain IC card error information by sending special commands to the IC card.
[0003] Furthermore, the technology of Patent Document 1 discloses a technology in which the memory means is checked by a self-diagnosis process when the IC card is started up, and error information is added to the response data for the reset process, and in order to save the time required for exchanging self-diagnosis commands, the memory means is checked as follows when the IC card is started up, and detected error information is sent to a data read / write device when the response data for the IC card's reset process is output.
[0004] (Memory means check process) (1) Check the volatile memory RAM. (2) When the IC card is in an unissued state, the non-volatile memory (EEPROM, FLASH (trademark) memory, etc.) is checked. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Japanese Patent Application Publication No. 9-297831 Summary of the Invention [Problem to be solved by the invention]
[0006] However, in the case of Patent Document 1, because the IC card stores error information in volatile memory RAM, if the power supply from the data read / write device of the IC card to the IC card is lost or the IC card is reset, the data read / write device of the IC card is unable to obtain from the IC card the error information during execution of a specified command, which is a problem.
[0007] Furthermore, when an IC card data reading / writing device sends a special command to an IC card to obtain error information, depending on the IC card's life cycle (issue mode, operational mode, abolition mode, etc.), the command is often unable to be executed, which has also caused the problem that the IC card data reading / writing device is unable to obtain sufficient error information from the IC card.
[0008] The present invention has been made in view of the above circumstances, and an object of the present invention is to enable an IC card to output all error information to a data read / write device without omission. [Means for solving the problem]
[0009] In order to solve the above-mentioned problems, the present invention provides an IC card, the IC card having an initial response processing means and an error information processing means, an error data storage area in a non-volatile memory means, the error information processing means writes error information in each process of the IC card into the error data storage area; In the reset process of the IC card by the data read / write device, the initial response processing means Error information is read from the error data storage area, and the error information is set in response data for the reset process and transmitted to the data read / write device. It is configured as follows: The initial response processing means includes an activation command processing means, In the process in which the activation command processing means transmits response data to the data read / write device, Error information is read from the error data storage area, and the error information is set in response data to the activation command and transmitted to the data read / write device. This is an IC card characterized by the above.
[0010] With this configuration, the present invention has the advantage that the error information is not lost and the data read / write device can obtain all the error information of the IC card without missing anything. Effect of the Invention
[0013] According to the present invention, in the process stage in which the data read / write device activates the IC card, the IC card transmits all error information stored in the non-volatile storage means to the data read / write device at once. Therefore, the data read / write device can obtain the error information of the IC card without using a special command. In addition, there is an effect that the data read / write device can obtain all error information without depending on the life cycle of the IC card.
[0014] In addition, since the IC card stores the error information in a non-volatile storage means, even if the power supply from the data read / write device of the IC card to the IC card is cut off or the IC card is reset, the error information is not erased and the data read / write device can obtain all the error information of the IC card without omission.
[0015] Furthermore, since the IC card stores error information for each process in a non-volatile memory means, it has the effect of being able to output to the data read / write device all error information, including error information that occurs during the period from when the IC card is started up to when it outputs an initial response, and also error information that occurs when a previously activated IC card executes a command after activation. [Brief description of the drawings]
[0016] [Figure 1] 2 is a block diagram showing a data structure of a storage area of a storage unit of the IC card according to the first embodiment of the present invention. FIG. [Diagram 2] 4 is a flowchart showing a first error information output procedure of the IC card according to the first embodiment of the present invention. [Diagram 3] 10 is a flowchart showing a second error information output procedure of the IC card according to the first embodiment of the present invention. [Figure 4] 10 is a flowchart showing a third error information output procedure of the IC card according to the first embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] <First embodiment> A first embodiment of the present invention will be described below with reference to Figures 1 and 2. The first embodiment is configured with an IC card 100 and an IC card data read / write device 200 including a reader / writer and its higher-level system, as shown in the block diagram of Figure 1.
[0018] (IC card 100) 1 shows a block diagram of an IC card 100. The IC card 100 includes a communication unit 111, a control unit 112, a volatile memory RAM, and a storage unit 100a including a non-volatile memory such as a read-only memory ROM or a flash memory. The IC card 100 communicates with a data read / write device 200 such as a reader / writer using the communication unit 111.
[0019] (Communication section 111) The communication unit 111 of the IC card 100 may be configured as a contact-type electrode terminal that electrically connects to the electrode terminal of the data read / write device 200, or it may be configured as an antenna and interface for non-contact short-range wireless communication that receives power through electromagnetic induction of the magnetic field generated by the data read / write device 200 and communicates.
[0020] (Control means 112) Control means 112 of IC card 100 executes various controls in IC card 100. The functions of control means 112 are realized by a CPU included in IC card 100 executing programs stored in nonvolatile storage means 100a. Control means 112 operates initial response processing means 120, which is configured by programs stored in a system area AR2 of nonvolatile storage means 100a, error information processing means 130, and other processing programs.
[0021] (Initial response processing means 120) The initial response processing means 120 includes one or both of a reset processing means 121 and an activation command processing means 122. The initial response processing means 120 executes processing in an initial response (ISO / IEC 7816: ATR, ISO / IEC 14443: ATQB, ATA, etc.).
[0022] (Reset processing means 121) The reset processing means 121 operates when the IC card 100 receives a reset signal from the data reading and writing device 200, reads error information from the error data storage area 140, and creates the reset processing response data ATR, whose data structure is shown in Table 1 according to the ISO / IEC 7816 standard, by setting the error information in the operation management information character.The reset processing means 121 then transmits the reset processing response data ATR to the data reading and writing device 200.
[0023] When error information is set in the operation management information character, the category indicator byte in the first byte of the operation management information character (historical byte) is set to a value other than 00h, 10h, or 81h to 8Fh in accordance with the ISO / IEC 7816 standard, and the error information is set in the subsequent data. Also, a check code for the error information is set. The error information check code uses CRC16 or the like to ensure that the error information has not been tampered with.
[0024] [Table 1]
[0025] (Activation command processing means 122) The activation command processing means 122 executes a process of transmitting, to the data read / write device 200, ATS data (Answer to Select), ATQB data, and ATA data, which are response data to the activation command, during the activation process of the IC card 100.
[0026] (ATS data) The IC card 100 receives an ATS request command RATS (Request When "Answer for Answer to Select" is received, the error information is read from the error data storage area 140, and the ATS data (Answer for Answer to Select) whose data structure is shown in Table 2 according to the ISO / IEC 14443 standard is stored. to Select) to create ATS data with error information set in the operation management information character. Then, the activation command processing means 122 transmits the ATS data to the data read / write device 200. When error information is set in the operation management information characters, the category indicator byte at the top of the operation management information characters (historical byte) is set to a value other than 00h, 10h, or 81h to 8Fh, and the error information is set in the subsequent data. In other words, the error information setting is equivalent to the ISO / IEC 7816 standard.
[0027] [Table 2]
[0028] (ATQB data) When the IC card 100 receives an activation command REQB / WUPB (Request command, Type B / Wake-Up command, Type B) from the data read / write device 200 during the activation process of the IC card 100, the activation command processing means 122 reads error information from the error data storage area 140 and creates ATQB data (Answer to Request, Type B) whose data structure is shown in Table 3 according to the ISO / IEC 14443 standard, with the error information set in the application data. Then, the activation command processing means 122 transmits the ATQB data to the data read / write device 200.
[0029] [Table 3]
[0030] In detail, error information is stored in the application data of the ATQB data, and the following data is set in the protocol information of the ATQB data whose data structure is shown in Table 4. That is, when error information is stored in the ATQB data, the ADC bits of the protocol information are set to 00b, and the ATQB data in which the error information and the check code of the error information are set in the application data of the ATQB data is transmitted to the data reading / writing device 200.
[0031] [Table 4]
[0032] (ATA data) When the IC card 100 receives another activation command ATTRIB (PICC selection command, Type B) of the proximity IC card from the data read / write device 200 during the activation process of the IC card 100, the activation command processing means 122 reads error information from the error data storage area 140, creates ATA (Answer to ATTRIB) data whose data structure is shown in Table 5 according to the ISO / IEC 14443 standard, and sets the error information in its upper layer response data. Then, the activation command processing means 122 transmits the ATA data to the data read / write device 200. Here, when error information is stored in the ATA data, the upper layer response is set with the error information and a check code of the error information, and outputs it as the ATA data.
[0033] [Table 5]
[0034] (Error information processing means 130) During the activation processing stage of the IC card 100, the error information processing means 130 performs self-diagnosis of the volatile memory RAM, self-diagnosis processing of the non-volatile storage means 100a, and checks of hardware such as the coprocessor, and stores the acquired error information in the error data storage area 140 of the non-volatile storage means 100a.
[0035] After the IC card 100 is activated, when processing a command received from the data read / write device 200, the error information processing means 130 detects error information occurring in the processing and stores the detected error information in the error data storage area 140 of the nonvolatile storage means 100a. Store it as 0.
[0036] (Error information) For example, the following parameters are stored in the error data storage area 140 as error information: (1) Error number (unique number) (2)Cause of error: If the error is caused by hardware, the register error information is stored as the cause of the error. If the error is caused by software, the software-specified error information is stored as the cause of the error.
[0037] (Storage means 100a of IC card 100) The storage means 100a of the IC card 100 is composed of a non-volatile storage means such as a read-only memory ROM, an EEPROM (Electrically Erasable and Programmable ROM), or a flash memory.
[0038] As shown in the block diagram of FIG. 1, the storage area of the non-volatile storage means 100a includes a file management area AR1, a system area AR2, a user data area AR3, and other storage areas.
[0039] The storage area of the non-volatile storage means 100a may include areas other than the file management area AR1, the system area AR2, and the user data area AR3.
[0040] (File management area AR1) The file management area AR1 stores file management information for managing data stored in the system area AR2, the user data area AR3, and other storage areas on a file-by-file basis. As an example, the file management area AR1 in this embodiment may store file management information corresponding to a FAT (File Allocation Table) file system.
[0041] (System area AR2) In the system area AR2, system information such as the card operation software OS (Operating System) and various file setting information is written, and programs for the initial response processing means 120 and error information processing means 130 are stored. Also, error data is stored in the error data storage area 140.
[0042] (User data area AR3) Hierarchical structure of dedicated file DF The user data area AR3 is an area for storing user data used by applications. In the IC card 100, data is written to and read from the user data area AR3 in a hierarchical structure below a main file MF (Master File) as shown in FIG. 1, so that data is managed on a file-by-file basis.
[0043] The files written in the user data area AR3 are stored in a dedicated file DF (Dedicated File), and elementary files EF (Elementary File: Basic file) and other dedicated files DF are stored.
[0044] Each of the above files (MF, DF, EF) has attached directory information (directory entry) that is used to recognize and manage the files connected to it. The directory information contains information such as the file number for identifying the file, the file position, key information for verification or mutual authentication, access conditions, attributes, etc.
[0045] (Special file DF) The directory information of the dedicated file DF includes information such as the file positions and attributes of the basic files EF formed under the dedicated file DF.
[0046] (Basic File EF) The elementary files EF, which are configured under the dedicated file DF, are files for storing data, and are divided into two types: IEF (Internal Elementary File) and WEF (Working Elementary File).
[0047] (Internal Foundation File IEF) The internal basic file IEF of the IC card 100 is a file in which key data for security purposes is stored. For security reasons, the IEF is a file that cannot be output from the IC card to the outside, and is used only within the IC card.
[0048] (Working Foundation File WEF) The working basic file WEF is a file that can be output from the IC card to the outside, and stores general data such as information about points given to a user.
[0049] (Data Read / Write Device 200) The data reading and writing device 200 is a combination of a reader / writer that reads and writes data from and to the IC card 100, and a host system that includes a command creating means 210 that creates commands to be sent to the IC card 100. The data reading and writing device 200 has a means for sending a reset signal to the IC card 100.
[0050] The command creation means 210 of the data read / write device 200 creates various commands to be sent to the IC card 100. In particular, during the activation process of the IC card 100, it creates an ATS request command RATS (Request for Answer to Select). It also creates activation commands REQB / WUPB (Request command, Type B / Wake-Up command, Type B) and ATTRIB (PICC selection command, Type B).
[0051] [IC card processing procedure example 1] Hereinafter, with reference to the flowchart in FIG. 2, a process procedure in which the IC card 100 of this embodiment stores error information in the error data storage area 140 and transmits the error information to the data reading / writing device 200 will be described.
[0052] (Step S1) The data read / write device 200 transmits a reset signal or an activation command to the IC card 100 .
[0053] (Step S2) When the communication unit 111 of the IC card 100 receives a reset signal RESET from the data read / write device 200, the reset processing means 121 first operates the error information processing means 130. Then, the error information processing means 130 performs a self-diagnosis process on the volatile memory RAM. If no abnormality is found, the process proceeds to step S3.
[0054] If the error information processing means 130 detects an abnormality in the volatile memory RAM, the self-diagnosis process is terminated, and the process proceeds to step S5 where the error information is stored in the error data storage area 140 of the non-volatile storage means 100a.
[0055] (Step S3) If it is determined in step S2 that the volatile memory RAM is normal, a self-diagnosis process is performed on the nonvolatile storage means 100a. If an abnormality is detected in the nonvolatile storage means 100a, the process proceeds to step S5, where error information is stored in the error data storage area 140 of the nonvolatile storage means 100a. If no abnormality is detected in the nonvolatile storage means 100a, the process proceeds to step S4.
[0056] (Step S4) If it is determined in step S3 that the non-volatile memory RAM is normal, the coprocessor and other hardware are checked. If there is an abnormality in the hardware, the process proceeds to step S5, where the error information is stored in the error data storage area 140 of the coprocessor and other hardware. If there is no abnormality in the coprocessor and other hardware, the process proceeds to step S6.
[0057] (Step S5) The error information detected in steps S2, S3, and S4 is stored in the error data storage area 140 of the non-volatile storage means 100a.
[0058] (Step S6) Next, the error information processing means 130 operates the reset processing means 121. The reset processing means 121 reads out the error information created in step S5 or step S7 from the error data storage area 140, sets the error information in the operation management information characters of the response data ATR (Answer To Reset) of the reset processing, the data structure of which is shown in Table 1, and transmits the response data ATR of the reset processing to the data read / write device 200.
[0059] (Step S7) After being activated, the IC card 100 receives each command from the data read / write device 200 and processes the command. During the processing, the error information processing means 130 detects error information occurring during the processing and stores the detected error information in the error data storage area 140 of the non-volatile storage means 100a. This error information is incorporated into the response data to the data read / write device 200 in the processing of steps S5 to S8 of the subsequent operation of the IC card 100.
[0060] [IC card processing procedure example 2] Below, we will explain an example 2 of the IC card processing procedure, focusing on the different parts of the processing procedure for sending error information to the data read / write device 200, with reference to the flowchart of Figure 3, which mainly shows step 6, which is a process that differs from the flowchart of Figure 2.
[0061] (Step S6´) The reset processing means 121 operates the activation command processing means 122. When the IC card 100 receives an ATS request command RATS (Request for Answer to Select) from the data reading and writing device 200 during the activation processing stage of the IC card 100, the activation command processing means 122 reads error information from the error data storage area 140 and creates ATS data in which the error information is set in the operation management information characters of the ATS (Answer to Select) data whose data structure is shown in Table 2. Then, the activation command processing means 122 transmits the ATS data to the data reading and writing device 200.
[0062] [IC card processing procedure example 3] Below, we will explain an example 3 of the IC card processing procedure, focusing on the different parts of the processing procedure for sending error information to the data reading / writing device 200, with reference to the flowchart of Figure 4, which mainly shows step 6, which is a process that differs from the flowchart of Figure 2.
[0063] (Step S6´´) When the IC card 100 receives an activation command REQB / WUPB (Request command, Type B / Wake-Up command, Type B) from the data read / write device 200 during the activation process of the IC card 100, the activation command processing means 122 reads error information from the error data storage area 140 and creates ATQB data (Answer to Request, Type B) in which the error information is set as application data of the ATQB data shown in Table 3. Then, the activation command processing means 122 transmits the ATQB data to the data read / write device 200.
[0064] (Step S6´´´) When the IC card 100 receives another activation command ATTRIB (PICC selection command, Type B) for a proximity IC card from the data read / write device 200 during the activation process of the IC card 100, the activation command processing means 122 reads error information from the error data storage area 140, and creates ATA data in which the error information is set as upper layer response data of the ATA (Answer to ATTRIB) data whose data structure is shown in Table 5. Then, the activation command processing means 122 transmits the ATA data to the data read / write device 200. Here, if error information is stored in the ATA data, the upper layer response is set with the error information and a check code for the error information, and the ATA data is output. Note that in the above steps 6″ and 6″″, the error information may be output only in one of the steps, or in both steps.
[0065] In the present invention, in the process stage in which the data read / write device 200 activates the IC card 100, the IC card 100 transmits all the error information stored in the error data storage area 140 of the non-volatile storage means 100a to the data read / write device 200 at once. This has the effect that the error information of the IC card 100 is not erased, and the data read / write device 200 can obtain all the error information of the IC card 100 without missing any.
[0066] This also has the effect that even if the command for acquiring specific error information cannot be used due to the different life cycles of IC card 100 depending on whether it is in issue mode, operation mode, or abolition mode, data read / write device 200 can acquire error information from IC card 100 without omission.
[0067] In addition, the error information stored in the error data storage area 140 of the non-volatile storage means 100a can be stored in the error data storage area 140 for a predetermined period of time even after the error information has been transmitted to the data read / write device 200, and the error information can be transmitted to the data read / write device 200 multiple times. [Explanation of symbols]
[0068] 100···IC card 100a...Non-volatile storage means 111 Communications Department 112... Control means 120... Initial response processing means 121 Reset processing means 122... Activation command processing means 130 Error information processing means 140 Error data storage area 200 Data read / write device 210 Command creation means AR1: File management area AR2...System Area AR3: User data area ATA...ATA Data ATR Reset process response data ATS...ATS Data ATQB...ATQB Data ATTRIB...Activation Command DF... Dedicated file EF...Basic File IEF... Internal Basic File MF...Main file RAM: Volatile memory RATS...ATS request command REQB...Activation command RESET Reset signal WEF...Working base file
Claims
[Claim 1] An IC card, comprising: an initial response processing means; an error information processing means; and an error data storage area in a non-volatile memory means. the error information processing means writes error information in each process of the IC card into the error data storage area; the initial response processing means is configured to, in a reset process of the IC card by the data read / write device, read error information from the error data storage area, set the error information in response data of the reset process, and transmit the response data to the data read / write device; The initial response processing means includes an activation command processing means, In the process in which the activation command processing means transmits response data to the data read / write device, an IC card which reads out error information from said error data storage area, sets said error information in response data to said activation command, and transmits said response data to said data read / write device;
Citation Information
Patent Citations
Processing system
JP1988180186A
Information recording medium with memory check function
JP1996129629A
Portable data carrier
JP1997297831A
IC card system
JP2005025509A
Portable electronic device
JP2016126441A