Patent ID: 8276824

Claim:
A communication device comprising: receiving means for receiving a transmitted command; command processing means for performing command processing in response to the received command and generates a response containing a result of the command processing; updating means for updating information held in one area currently disabled, out of a first area and a second area, using the result of the command processing, the first area and the second area forming a memory for holding information indicating a current status; transmitting means for transmitting the generated response; and switching means for switching, out of the first area and the second area of the memory, the one area currently disabled and holding the information that was updated using the result of the command processing into the enabled state and the other area currently enabled into the disabled state dynamically according to a response length of the response immediately after transmission of the response is completed; and wherein the switching means switches, out of the first area and the second area of the memory, the one area currently disabled and holding the information that was updated using the result of the command processing into the enabled state and the other area currently enabled into the disabled state dynamically according to a response length of the response immediately after transmission of the response is completed.