Patent ID: 11877047
Assignee: HONOR DEVICE CO., LTD.
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H  G | IPC G  H

Claim 12:
13. The method of claim 11, wherein before calculating the first difference and calculating the second difference, the method further comprises:
obtaining a third induction signal generated by the Hall sensor, and calculating a third difference between the third induction signal and a steady-state signal, wherein the third induction signal is an induction signal generated by sensing the magnetic field of the first magnet by a third working surface of the Hall sensor, and the steady-state signal is an induction signal generated by the third working surface of the Hall sensor in an environment in which the electronic device is not subject to an external magnetic field;
determining whether an absolute value of the third difference is greater than a reference threshold; and
in response to the absolute value of the third difference not being greater than the reference threshold, calculating the first difference between the first induction signal and the first reference signal, and calculating the second difference between the second induction signal and the second reference signal.