IC card and control program for IC card
View Patent ↗An IC card according to an embodiment includes a contact communication interface, a non-contact communication interface, and a processor. A contact communication means is configured to perform contact communication with a reader/writer. A non-contact communication means is configured to perform non-contact communication with the reader/writer. The processor is configured to set an Answer To Reset (ATR) in the contact communication and an Answer To Select (ATS) in the non-contact communication based on a predetermined command including historical bytes.
1. An IC card comprising:
a contact communication interface configured to perform contact communication with a reader/writer;
a non-contact communication interface configured to perform non-contact communication with the reader/writer;
a processor configured to set an Answer To Reset (ATR) in the contact communication and an Answer To Select (ATS) in the non-contact communication based on historical bytes included in a predetermined command; and
a nonvolatile memory including a storage area in which the historical bytes are stored, wherein
the processor is configured to add the historical bytes stored in the storage area of the nonvolatile memory to the ATR and the ATS.
2. The IC card according to claim 1 , wherein the processor is configured to rewrite the historical bytes in the storage area of the nonvolatile memory based on the predetermined command including the historical bytes.
3. An IC card comprising:
a contact communication interface configured to perform contact communication with a reader/writer;
a non-contact communication interface configured to perform non-contact communication with the reader/writer;
a processor configured to set an Answer To Reset (ATR) in the contact communication and an Answer To Select (ATS) in the non-contact communication based on historical bytes included in a predetermined command; and
a nonvolatile memory including a first storage area and a second storage area, wherein
the processor is configured to:
overwrite the first storage area and the second storage area with the historical bytes included in the predetermined command;
add the historical bytes in the first storage area to the ATR; and
add the historical bytes in the second storage area to the ATS.
4. A non-transitory computer readable medium including a computer executable control program for an IC card to be executed in an IC card including a contact communication interface configured to perform contact communication with a reader/writer, a non-contact communication interface configured to perform non-contact communication with the reader writer, a processor, and a nonvolatile memory including a storage area in which historical bytes are stored, wherein
the control program causes the processor to set an Answer To Reset (ATR) in the contact communication and an Answer To Select (ATS) in the non-contact communication based on historical bytes included in a predetermined command and store the historical bytes in the storage area of the nonvolatile memory; and
the control program causes the processor to add the historical bytes stored in the storage area of the nonvolatile memory to the ATR and the ATS.