Patent ID: 8259319

Claim:
A communication device configured to be connected with an external device in a communicable manner, the communication device comprising: a receiving unit configured to receive data sent from the external device; a main control unit configured to shift its state between a sleeping state and a non-sleeping state; a condition storage unit configured to store at least one of a condition for maintaining the sleeping state of the main control unit and a condition for releasing the sleeping state of the main control unit; and a sub control unit, a memory storing computer-executable instructions that, when executed by the sub control unit, cause the communication device to perform operations comprising: first judging, in a case where the data is received by the receiving unit while the main control unit is being in the sleeping state, whether the sleeping state of the main control unit is to be maintained based on specific information included in the data by referring to the condition stored in the condition storage unit; and releasing the sleeping state of the main control unit in a case where a negative judgment is made by the first judging, wherein the memory stores computer-executable instructions that, when executed by at least one of the main control unit and the sub control unit, causes the communication device to further perform operations comprising: registering, when object data is received by the receiving unit, a new condition in the condition storage unit based on the specific information included in the object data, and executing the registration of the new condition in a case where the sleeping state of the main control unit would be released by the releasing unit although the sleeping state of the main control unit should not be released under a presumption of the object data being received while the main control unit is in the sleeping state.