US 12,222,883 B2
Accessory, method of controlling accessory, electronic device, method of controlling electronic device, communication system, and storage medium
Yuichi Ariga, Tokyo (JP)
Assigned to Canon Kabushiki Kaisha, Tokyo (JP)
Filed by CANON KABUSHIKI KAISHA, Tokyo (JP)
Filed on Apr. 15, 2022, as Appl. No. 17/722,183.
Claims priority of application No. 2021-073485 (JP), filed on Apr. 23, 2021.
Prior Publication US 2022/0342670 A1, Oct. 27, 2022
Int. Cl. G06F 13/38 (2006.01); G06F 11/10 (2006.01)
CPC G06F 13/385 (2013.01) [G06F 11/1004 (2013.01); G06F 2213/0016 (2013.01)] 14 Claims
OG exemplary drawing
 
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.