| CPC G06F 13/385 (2013.01) [G06F 11/1004 (2013.01); G06F 2213/0016 (2013.01)] | 14 Claims |

|
1. An accessory communicably connected to an electronic device, comprising:
a storage unit that allows reading therefrom and writing therein and stores accessory information including a flag indicating whether execution of a command by the accessory is allowed or not;
a communication unit that, upon the accessory being mounted on the electronic device, transmits the accessory information to the electronic device;
at least one processor; and
at least one memory coupled to the at least one processor, the at least one memory storing instructions that, when executed by the at least one processor, cause the accessory to perform operations comprising:
upon receipt of a predetermined command from the electronic device through the communication unit, not executing the predetermined command in a case where the flag indicates that execution of the command is not allowed, and executing the predetermined command in a case where execution of the command is allowed; and
adding a checksum to communication to the electronic device for the electronic device to read information stored in the storage unit from the accessory, and also adding a checksum to communication to the electronic device for the electronic device to write the command into the storage unit.
|