US 12,461,172 B2
Method for identifying an attached state or a detached state of an accessory device and electronic device supporting the same
Taekeun Kim, Suwon-si (KR); Kihun Eom, Suwon-si (KR); Intae Jun, Suwon-si (KR); Kihoon Kang, Suwon-si (KR); Kihong Min, Suwon-si (KR); Gunhee Park, Suwon-si (KR); and Jeonggyun Park, Suwon-si (KR)
Assigned to Samsung Electronics Co., Ltd., Suwon-si (KR)
Filed by Samsung Electronics Co., Ltd., Suwon-si (KR)
Filed on Aug. 14, 2023, as Appl. No. 18/449,414.
Application 18/449,414 is a continuation of application No. PCT/KR2022/002162, filed on Feb. 14, 2022.
Claims priority of application No. 10-2021-0020638 (KR), filed on Feb. 16, 2021.
Prior Publication US 2024/0003989 A1, Jan. 4, 2024
Int. Cl. G01R 33/00 (2006.01); G01R 33/02 (2006.01)
CPC G01R 33/0023 (2013.01) [G01R 33/0047 (2013.01); G01R 33/02 (2013.01)] 20 Claims
OG exemplary drawing
 
1. An electronic device comprising:
a magnetic sensor configured to identify an intensity of a magnetic field;
a wireless communication circuit;
a processor comprising processing circuitry; and
a memory electrically connected to the magnetic sensor, the wireless communication circuit, and the processor, and configured to store instructions,
wherein the processor is individually and/or collectively configured to cause the electronic device to:
identify a plurality of intensities of the magnetic field during a first period at least by using the magnetic sensor;
identify a first state of the electronic device indicating an attached state or a detached state of an accessory device based on a comparison result between the plurality of intensities and a reference intensity;
based on identifying the first state of the electronic device, emit a short-range wireless signal through the wireless communication circuit at a first cycle during a first time;
identify a second state of the electronic device indicating the attached state or the detached state of the accessory device based on a response signal to the wireless signal emitted at the first cycle during the first time; and
finally identify a state of the electronic device indicating the attached state or the detached state of the accessory device based on the first identification result and second identification result.