Patent ID: 8595826

Claim:
An IC card comprising: a storage unit in which information indicating contents of a plurality of commands that execute a series of regular processes and a reception sequence of the commands are stored; a communication unit which receives a command from an external device; and a control unit which determines whether or not a reception sequence of the command received by the communication unit matches the reception sequence stored in the storage unit, and executes the process according to the command received by the communication unit if the reception sequence of the command received from the communication unit matches the reception sequence stored in the storage unit, wherein the storage unit stores information indicating a permissible range of a reception interval between correct commands, and wherein the control unit determines whether or not a reception interval between an antecedent command following the antecedent command received by the communication unit exists within the permissible range of the reception interval between the correct commands stored in the storage unit, and executes a process according to the command received by the communication unit if the reception interval between the antecedent command and the command following the antecedent command received by the communication unit exists within the permissible range of the reception interval between the correct commands stored in the storage unit.