Portable electronic device and control method of portable electronic device
First Claim
Patent Images
1. An IC card comprising:
- a storage portion which stores history information indicating a last command executed for each of a plurality of logical channels;
a memory which stores a preset execution order for executing a plurality of commands for each of the logical channels;
an interface which receives a command supplied from an external device;
a determining portion which determines whether or not executing the received command next to be executed is in a correct execution order, based on the stored history information of a command executed in an immediately preceding cycle of a logical channel specified by the received command and based on that the command executed in the immediately preceding cycle should be executed immediately before the command received in the preset execution order stored in said memory for the specified logical channel;
a processing portion which performs a process corresponding to the command if the determining portion determines that to execute the received command next is in the preset execution order; and
a holding portion which stores information indicating the command executed by the processing portion in the storage portion as history information indicating the last command executed for the logical channel.
1 Assignment
0 Petitions
Accused Products
Abstract
An IC card stores history information indicating information relating to a command executed for each logical channel in a storage portion and determines the validity of the command based on history information of a logical channel specified by the command stored in the storage portion when the command is supplied from an external device, performs a process corresponding to the command when the validity of the command is determined, and stores information relating to the executed command in the storage portion as history information of the logical channel.
5 Citations
13 Claims
-
1. An IC card comprising:
-
a storage portion which stores history information indicating a last command executed for each of a plurality of logical channels; a memory which stores a preset execution order for executing a plurality of commands for each of the logical channels; an interface which receives a command supplied from an external device; a determining portion which determines whether or not executing the received command next to be executed is in a correct execution order, based on the stored history information of a command executed in an immediately preceding cycle of a logical channel specified by the received command and based on that the command executed in the immediately preceding cycle should be executed immediately before the command received in the preset execution order stored in said memory for the specified logical channel; a processing portion which performs a process corresponding to the command if the determining portion determines that to execute the received command next is in the preset execution order; and a holding portion which stores information indicating the command executed by the processing portion in the storage portion as history information indicating the last command executed for the logical channel. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A control method used for an IC card having a control element which performs various processes according to commands supplied from an external device, comprising:
-
storing history information in a storage portion of the IC card indicating a last command executed for each of a plurality of logical channels; storing in a memory a preset execution order for executing a plurality of commands for each of the logical channels; determining whether or not executing the supplied command next to be executed is in a correct execution order, based on the stored history information of a command executed in an immediately preceding cycle of a logical channel specified by the received command and based on that the command executed in the immediately preceding cycle should be executed immediately before the command received in the preset execution order stored in said memory for the specified logical channel; performing a process corresponding to the received command if the determining determines that to execute the received command next is in the preset execution order; and storing information indicating the executed command in the storage portion as history information indicating the last command executed for the logical channel. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A portable electronic device comprising:
-
a storage portion which stores history information indicating a last command executed for each of a plurality of logical channel channels; a memory which stores a preset execution order for executing a plurality of commands for each of the logical channel; an interface which receives from an external device a command specified for a logical channel; a determining portion which determines whether or not executing the received command next to be executed is in a correct execution order, based on the stored history information of a command executed in an immediately preceding cycle of a logical channel specified by the received command and based on that the command executed in the immediately preceding cycle should be executed immediately before the command received in the preset execution order stored in said memory for the specified logical channel; a processing portion which performs a process corresponding to the command if the determining portion determines that to execute the received command next is in the preset execution order; and a holding portion which stores information indicating the command executed by the processing portion in the storage portion as history information indicating the last command executed for the logical channel.
-
Specification