IC card, a method of controlling update of data, a method of controlling restoration of data or messages, and a computer product
First Claim
1. An IC card comprising:
- a first storage region in which written data is not guaranteed;
a second storage region in which the written data is guaranteed;
a third storage region in which a status bit indicating a processing state is stored; and
a processing section, wherein if receiving a first command to write the data without guarantee from a host apparatus, said processing section sets the status bit corresponding to a write processing at a state indicating a non-guarantee write processing and writes the received data to said first storage region, and if receiving a second command to write data with guarantee from the host apparatus, said processing section sets the status bit corresponding to the write processing at a state indicating a guarantee write processing and writes the received data to said second storage region.
1 Assignment
0 Petitions
Accused Products
Abstract
The IC card sets a status bit, to which an update command including write data is allotted, at a processing start state if receiving the update command from a host apparatus, updates a data region based on control information including information on a previous control region, sets the status bit at a processing end state, and finally transmits a response message to the host apparatus. When restarted if an update processing was interrupted, the IC card prohibits a write data update processing and transmits an error signal to the host apparatus if the status bit is set at the processing start state, and completes the update processing and then transmits the response message to the host apparatus if the status bit is set at the processing end state.
-
Citations
15 Claims
-
1. An IC card comprising:
-
a first storage region in which written data is not guaranteed;
a second storage region in which the written data is guaranteed;
a third storage region in which a status bit indicating a processing state is stored; and
a processing section, wherein if receiving a first command to write the data without guarantee from a host apparatus, said processing section sets the status bit corresponding to a write processing at a state indicating a non-guarantee write processing and writes the received data to said first storage region, and if receiving a second command to write data with guarantee from the host apparatus, said processing section sets the status bit corresponding to the write processing at a state indicating a guarantee write processing and writes the received data to said second storage region.
-
-
2. An IC card comprising:
-
a data storage region;
a control information storage region;
a status bit storage region storing a status bit indicating a processing state; and
a processing section, wherein if receiving a command to write data from a host apparatus, said processing section sets the status bit corresponding to a write processing at a processing start state, sets said status bit at a processing end state after finishing writing the data based on said control information, and transmits a response message indicating that the write processing was normally ended to the host apparatus; and
in restarting the IC card after said write processing is interrupted, said processing section transmits an error signal to the host apparatus if said status bit is set at the processing start state, and transmits the response message indicating processing end to the host apparatus if said status bit is set at the processing end state.
-
-
3. An IC card comprising:
-
a data storage region;
a restart point storage region storing restart point information indicating a position at which a processing is to be restarted;
a saving region temporarily saving the restart point;
a status bit storage region storing a status bit indicating a processing state; and
a processing section, wherein if receiving a command to write data from a host apparatus, said processing section moves the restart point information stored in said restart point storage region to said saving region, and writes a command serial number included in the command to said restart point storage region as restart point information, sets said status bit at a processing end state after completion of writing the data, and transmits a response message indicating that the processing was normally ended to the host apparatus; and
in restarting the IC card after said write processing is interrupted, the processing section notifies the host apparatus of said status bit and the restart point processing in accordance with the state of said status bit as a response message.
-
-
4. An IC card comprising:
-
a data storage region;
a control information storage region;
a saving region temporarily saving control information; and
a processing region, whereinif receiving a command to write data from a host apparatus, said processing section moves the control information stored in said control information storage region to said saving region, sets a status bit corresponding to a write processing at a processing start state, searches a data update place from said control information, stores write data included in said command in said searched update place, updates the update place for the data stored as said control information to a next data region, sets said status bit at a processing end state, and transmits a response message indicating that the processing was normally ended to said host apparatus; and
in restarting the IC card after said write processing is interrupted, said processing section judges whether to restore the control information transmitted to said host apparatus in accordance with the state of said status bit.
-
-
5. An IC card comprising:
-
a data storage region;
a saving region temporarily saving data from a host apparatus;
a status bit storage region storing a status bit indicating a processing state; and
a processing section, wherein if receiving a command to write the data from the host apparatus, said processing section moves the data stored in said data storage region to said saving region, sets the status bit corresponding to a write processing at a processing start state, writes data included in said command to said data storage region, sets said status bit at a processing end state, and transmits a response message indicating that the processing was normally ended to said host apparatus; and
in restarting the IC card after said write processing is interrupted, said processing section judges whether to restore said data region in accordance with the state of said status bit.
-
-
6. A data update control method comprising:
-
a first write step of, if receiving a first command to write data without guarantee from externally, setting the status bit corresponding to a write processing at a state indicating a non-guarantee write processing and writing the received data to a data non-guarantee storage region; and
a second write step of, if receiving a second command to write data with guarantee from externally, setting the status bit corresponding to the write processing at a state indicating a guarantee write processing and writing the received data to a data guarantee region.
-
-
7. A data update control method comprising:
-
a first status setting step of, if receiving a command to write data from a host apparatus, setting a status bit corresponding to a write processing at a processing start state;
a second status setting step of setting said status bit at a processing end state after finishing writing the data based on control information;
a response transmission step of transmitting a response message indicating that the write processing was normally ended to externally; and
a restart step of, in restarting after said write processing is interrupted, transmitting an error signal to the host apparatus if said status bit is set at the processing start state, and transmitting the response message indicating processing end to externally if said status bit is set at the processing end state.
-
-
8. A data update control method comprising:
-
a saving step of, if receiving a command to write data from externally, moving restart point information to a saving region;
a first status setting step of setting a status bit corresponding to a write processing at a processing start state;
a restart point setting step of updating current restart point information to a command serial number included in said command;
a data write step of wiring the data included in said command to a predetermined data storage region;
a second status setting step of setting said status bit at a processing end state after ending writing the data;
a response transmission step of transmitting a response message indicating that the processing was normally ended to externally; and
a restart step of, in restarting after said write processing is interrupted, notifying said status bit and restart point processed in accordance with the state of said status bit as the response message.
-
-
9. A data update control method comprising:
-
a saving step of, if receiving a command to write data from externally, moving present control information to a saving region;
a first status setting step of setting a status bit corresponding to a write processing at a processing start state;
a search step of searching a data update place from said control information;
a data storage step of storing write data included in said command in said searched update place;
a control information update step of updating the update place for the data stored as control information to a next data region;
a second status setting step of setting said status bit at a processing end state;
a response setting step of transmitting a response message indicating that the processing was normally ended to externally; and
a restart step of, in restarting after said write processing is interrupted, judging whether to restore the control information transmitted to externally in accordance with the state of said status bit.
-
-
10. A data update control method comprising:
-
a saving step of, if receiving a command to write data from externally, moving data stored in a data storage region to a saving region;
a first status setting step of setting a status bit corresponding to a write processing at a processing start state;
a data write step of writing data included in said command to a data storage region;
a second status setting step of setting said status bit at a processing end state;
a response transmission step of transmitting a response message indicating that the processing was normally ended to externally; and
a restart step of, in restarting after said write processing is interrupted, judging whether to restore said data region in accordance with the state of said status bit.
-
-
11. A data/message restoration control method comprising:
-
a first command transmission step in which a host apparatus transmits a command to write data;
a first status setting step in which an IC card sets a status bit corresponding to a write processing at a processing start state based on the received command;
a second status setting step in which the IC card sets said status bit at a processing end state after finishing writing the data based on said control information;
a response transmission step in which the IC card transmits a response message indicating that the processing was normally ended to said host apparatus;
a second command transmission step in which said host apparatus retransmits the command to write data if said write processing is interrupted and said host apparatus receives no response from said IC card; and
a data/message restoration step in which said IC card receives the retransmitted command, prohibits the write processing and transmits an error signal to said host apparatus if said status bit is set at the processing start state, and transmits the response message to said host apparatus after restoring the data and the response message indicating the processing end by means of a rewrite processing if the status bit is set at the processing end state.
-
-
12. A data/message restoration control method comprising:
-
a first command transmission step in which a host apparatus transmits a command to write data;
a saving step in which an IC card moves restart point information to a saving region based on the received command;
a first status setting step of setting a status bit corresponding to a write processing at a processing start state;
a restart point setting step of updating the present restart point information to a command serial number included in said command;
a data write step of writing data included in said command to a predetermined data storage region;
a second status setting step of setting said status bit at a processing end state after ending writing the data;
a response transmission step of transmitting a response message indicating that the processing was normally ended, to said host apparatus;
a restart command transmission step in which said host apparatus transmits a restart command when restarting the IC card if said write processing is interrupted and the host apparatus receives no response;
a restart point transmission step in which said IC card notifies said host apparatus of said status bit and a restart point processed in accordance with the state of said status bit as the response message;
a second command transmission step in which said host apparatus transmits a data write command corresponding to the received restart point; and
a data/message restoration step in which said IC card receives said command and restores the data and the response message indicating processing end by means of a rewrite processing.
-
-
13. A data/message restoration control method comprising:
-
a first command transmission step in which a host apparatus transmits a command to write data;
a saving step in which an IC card moves present control information to a saving region based on the received command;
a first status setting step of setting a status bit corresponding to a write processing at a processing start state;
a search step of searching a data update place from said control information;
a data storage step of storing write data included in said command, in said searched update place;
a control information update step of updating the update place for the data stored as the control information to a next data region;
a second status setting step of setting said status bit at a processing end state;
a response setting step of transmitting a response message indicating that the processing was normally ended to said host apparatus;
a restart command transmission step in which said host apparatus transmits a restart command when the IC card is restarted if said write processing step is interrupted and the host apparatus receives no response from said IC card;
a judgment result transmission step in which said IC card judges whether to restore the control information transmitted to said host apparatus in accordance with the state of said status bit after receiving said restart command, and transmitting a judgment result to the host apparatus as the response message;
a second command transmission step in which said host apparatus transmits a data write command corresponding to the received judgment result; and
a data/message restoration step in which said IC card receives said command and restores the data and the response message indicating processing end by means of a rewrite processing.
-
-
14. A data/message restoration control method comprising:
-
a first command transmission step in which a host apparatus transmits a data write command;
a saving state in which an IC card moves data stored in a data storage region to a saving region based on the received command;
a first status setting step in which the IC card sets a status bit corresponding to a write processing at a processing start state;
a data write step in which the IC card writes data included in said command to the data storage region;
a second status setting step in which the IC card sets said status bit at a processing end state;
a response transmission step in which the IC card transmits a response message indicating a processing was normally ended to said host apparatus;
in restarting if sad write processing is interrupted and said host apparatus receives no response from said IC card, a restart command transmission step in which said host apparatus transmits a restart command;
a judgment result transmission step in which said IC card judges whether to restore said data region in accordance with a state of said status bit after receiving said restart command, and transmits a judgment result to the host apparatus as the response message;
a second update command transmission step in which said host apparatus transmits the data write command corresponding to the received judgment result; and
a data/message restoration step in which said IC card receives said command and restores the data and the response message indicating processing end by means of a rewrite processing.
-
-
15. A computer readable medium for storing instructions, which when executed on a computer, causes the computer to perform:
-
a first status setting step of, if receiving a command to write data from externally, setting a status bit corresponding to a write processing at a processing start state;
a second status setting step of setting said status bit at a processing end state after ending writing the data based on said control information;
a response transmission step of transmitting a response message indicating that a processing was normally ended to externally; and
a restart step of prohibiting the write processing and transmitting an error signal to externally if said status bit is set at the processing start state in restarting if said write processing is interrupted, and transmitting the response message indicating processing end to externally after completing a rewrite processing if said status bit is set at the processing end state.
-
Specification