A positioning system based on a magnetic field, wherein the positioning system comprises a magnetic field transmit apparatus and a magnetic field receive apparatus, wherein the magnetic field transmit apparatus comprises a magnetic field transmit coil, a sensing coil, and a magnetic field generation detection control circuit, wherein the magnetic field receive apparatus comprises a magnetic field receive coil, and a magnetic field detection control circuit, and wherein:
- the sensing coil is configured to sense a magnetic field signal;
- the magnetic field generation detection control circuit is configured to:
- in response to a determination that a positioning function based on the magnetic field is enabled, generate an initial value of a countdown and start the countdown;
- and
- in response to a determination that the sensing coil does not sense the magnetic field signal and that the countdown ends, control the magnetic field transmit coil to transmit a first magnetic field signal;
- the magnetic field receive coil is configured to receive a magnetic field signal;
- and
- the magnetic field detection control circuit is configured to:
- in response to determining that the magnetic field signal received by the magnetic field receive coil is the first magnetic field signal, determine relative positions of the magnetic field transmit coil and the magnetic field receive coil based on signal strength of the first magnetic field signal.