[CLAIMS]
[Claim l](Amended)
A communication apparatus comprising a system unit and a near-field communication unit,
wherein said system unit includes:
an operation history detection unit configured to generate operation history Information of said communication apparatus;
an error detection unit configured to detect a malfunction of said system unit and generate error detection information about the malfunction;
a first storage unit configured to store the operation history information;
a system control unit configured to controi said communication apparatus; and
a first power source unit configured to supply power to said system unit and said near-field communication unit,
said near-field communication unit includes:
an antenna unit configured to receive a radiowave from an external reader-writer apparatus;
a communication control unit configured to perform near-field communication with the reader-writer apparatus through said antenna unit;
a second storage unit configured to store identification information for identifying said communication apparatus, said second storage unit being readable by the reader-writer apparatus;
a second power source unit configured to generate power by rectifying the radiowave received from the reader-writer apparatus through said antenna unit; and
a power source switching unit configured to select one of said first power source unit and said second power source unit, and supply power from the selected one of said power source units to said near-field communication unit,
said system control unit is configured to store, in said second storage unit, the error detection information and at least a part of the operation history information stored in said first storage unit with said
power source switching unit set to select said first power source unit, when said error detection unit detects a malfunction of said system unit, and
said communication control unit is configured to transmit the Identification information, the operation history information, and the error detection information stored in said second storage unit to the reader-writer apparatus through the near-field communication, in accordance with a request from the reader-writer apparatus.
[Claim 2](Amended)
The communication apparatus according to Claim 1,
wherein
said power source switching unit is configured to select said first power source unit, when said error detection unit detects a malfunction of said system unit.
[Claim 3]
The communication apparatus according to Claim 2, wherein said near-field communication unitfurther includes: a ciock generation unit configured to generate a doek signal for activating said near-field communication unit, by rectifying the radiowave received from the reader-writer apparatus through said antenna unit; and a clock switching unit configured to select one of the doek signal generated by said clock generation unit and a clock signal supplied by said system unit, as the clock signal for activating said near-field communication unit, and
said clock switching unit is configured to select the clock signal supplied by said system unit, as the clock signal for activating said near-field communication unit, when said error detection unit detects a malfunction of said system unit.
[Claim 4](Amended)
The communication apparatus according to Claim 3,
wherein said power source switching unit is configured to select
said second power source unit, during a normal operation free from a
malfunction detected by said error detection unit, and
said doek switching unit is configured to select the clock signal generated by said clock generation unit as the clock signal for activating said near-field communication unit.
[Claim 5](Amended)
The communication apparatus according to Claim 3,
wherein said power source switching unit is configured to switch
said power source unit to be selected, in accordance with a request from
said system control unit, and
said clock switching unit is configured to switch the clock signal to
be selected, in accordance with a request from said system control unit.
[Claim 6](Amended)
The communication apparatus according to Claim 1, wherein said first storage unit is configured to store the operation history information generated by said operation history detection unit by a wraparound addressing method, and further maintain an address position of the operation history information stored last in said first storage unit, and
said system control unit is configured to store, in said second storage unit, the operation history information stored in said first storage unit, by using the address position as reference, when said error detection unit detects a malfunction of said system unit.
[Claim 7](Amended)
The communication apparatus according to Claim 6, wherein said system control unit is configured to confirm a storage capacity of said second storage unit when said error detection unit detects a malfunction of said system unit, to thereby determine a capacity in said second storage unit for storing the operation history information.
[Claim 8](Amended)
The communication apparatus according to Claim 1,
wherein said second storage unit is configured to delete the
operation history stored therein by said near-field communication unit,
after said near-field communication unit transmits the operation history information to the reader-writer apparatus through said antenna unit.
[Claim 9](Amended)
A communication method performed by a communication apparatus including a system unit and a near-field communication unit,
the system unit including:
a first storage unit; and
a first power source unit configured to supply power to the system unit and the near-field communication unit,
the near-field communication unit including:
an antenna unit configured to receive a radiowave from a reader-writer apparatus;
a communication control unit configured to perform near-field communication with the reader-writer apparatus through the antenna unit;
a second storage unit configured to store Identification information for identifying the communication apparatus, the second storage unit being readable by the reader-writer apparatus; and
a second power source unit configured to generate power by rectifying the radiowave received from the reader-writer apparatus through said antenna unit,
said method comprising:
generating operation history information of the communication apparatus;
storing the operation history information in the first storage unit;
detecting a malfunction of the system unit and generating error detection information about the malfunction;
seiecting one of the first power source unit and the second power source unit, and supplying power from the selected power source unit to the near-field communication unit;
storing, in the second storage unit, the error detection information and at least a part of the operation history information stored in the first storage unit with the power source switching unit set to select the first power source unit, when the error detection unit detects a malfunction of
the system unit, and
transmitting the identification information, the operation history information, and the error detection information stored in the second storage unit to the reader-writer apparatus through the near-fieid communication, in accordance with a request from the reader-writer apparatus.
[Claim 10]
A program causing a computer to execute the communication method according to Claim 9.
[Claim ll](New)
The communication apparatus according to Claim 1,
wherein said power source switching unit is configured to select
said first power source unit when said first power source unit is activated.
[Claim 12](New)
The communication apparatus according to Claim 11, wherein said power source switching unit is configured to be inhibited from switching between said first power source unit and said second power source unit, whiie said second storage unit is being accessed in accordance with a request from the reader-writer apparatus.