Patent ID: 8473007

Claim:
An IC card, which interprets and executes a command instruction from an external device, and returns the execution result as a response, comprising: a command generation unit configured to generate a proactive command which requests the external device to execute a specific operation in response to a specific command instruction from the external device; a storage unit configured to store the generated proactive command in a memory; a notification unit configured to notify the external device of generation of the proactive command when a response to the specific command instruction is sent, to notify the external device of the proactive command when the external device instructs to fetch the proactive command, and to delete the proactive command from the memory; a discard unit configured to discard the proactive command in the memory when the external device determines that reception and processing of the proactive command cause inconvenience, and an instruction to discard the proactive command is received from the external device; and a reset unit configured to initialize the IC card when a command instruction which instructs to initialize is received from the external device, wherein the notification unit notifies the external device of generation of the proactive command when a command instruction other than the command instruction which instructs to discard the proactive command is received and when the proactive command is stored in the memory, the reset unit does not discard any proactive command in the memory, and the notification unit is configured to notify the external device of the generation of the proactive command when the proactive command is in the memory.