| CPC H04M 1/72454 (2021.01) [G01R 33/0029 (2013.01); H04M 1/026 (2013.01); H04M 1/7246 (2021.01); H04M 2201/34 (2013.01); H04M 2201/36 (2013.01); H04M 2250/12 (2013.01)] | 13 Claims |

|
1. An electronic device comprising:
a magnetic sensor;
communication circuitry;
at least one processor operatively connected with the magnetic sensor and the communication circuitry; and
memory storing instructions that, when executed by the at least one processor individually or collectively, cause the electronic device to:
identify that a magnetic signal is detected through the magnetic sensor;
identify, based on a magnitude of the detected magnetic signal, whether the magnetic signal is generated by coupling the electronic device with a cover device; and
in response to the magnitude of the detected magnetic signal being indicated as the magnetic signal generated by coupling the electronic device with the cover device, correct sensor data of the magnetic sensor using correction data corresponding to the magnitude of the detected magnetic signal,
wherein the memory further stores correction data for each of a plurality of magnetic signal ranges, and
wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to correct the sensor data of the magnetic sensor by:
identifying a magnetic signal range corresponding to the magnitude of the detected magnetic signal among the plurality of magnetic signal ranges, and
correcting the sensor data of the magnetic sensor based on correction data corresponding to the identified magnetic signal range.
|