At present, in the practical application of magnetic resonance wireless transmission technology, because of the change of distance, relative position between transmitting coil and receiving coil and load, the output power and transmission efficiency of transmission system will be greatly affected. Therefore, in order to improve the output power and transmission efficiency. In this paper, a new frequency tracking control algorithm based on Cascaded Generalized Integrator PLL (CGI-PLL) structure is proposed. The new frequency tracking control algorithm is used in the series-series circuit of magnetic resonance. It is planned to use this algorithm when the transmitting coil is detuning to a certain extent and the receiving coil is resonant at the same time. The phase compensation and soft switch are realized by controlling the phase difference between the output voltage and the output current of the primary side inverter. The experimental results show that the phase between the output voltage and the output current of the primary measurement inverter can remain unchanged when the load and mutual inductance are changed. Therefore, the CGI-PLL detuning control algorithm can actively track the frequency of the system, improve the output power and transmission efficiency of the system, and provide conditions for the operation of ZVS soft switch. It is proved that the new control algorithm proposed in this paper is feasible and correct.