A phase adjustment method and device, a terminal device and a storage medium

By acquiring the input signal frequency, adjusting the output signal frequency, and making adjustments at the zero-crossing point, the complex harmonic problem caused by phase synchronization in the prior art is solved, achieving smooth phase synchronization and improving the stability of signal transmission.

CN113938128BActive Publication Date: 2026-04-21深圳市百酷新能源有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
深圳市百酷新能源有限公司
Filing Date
2021-09-01
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In existing technologies, phase synchronization is often achieved through forced synchronization, which leads to complex harmonic components in the output signal and affects the stability of the equipment and subsequent signal receiving systems.

Method used

By acquiring the frequency of the input signal, adjusting the frequency of the output signal to match the frequency of the input signal, and adjusting the frequency of the output signal according to a preset rule at the zero crossing point, the phase difference between the input signal and the output signal is 0, thus achieving smooth phase synchronization.

Benefits of technology

It achieves seamless phase synchronization, reduces interference and instability of the synchronization process on the system, and ensures stable signal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113938128B_ABST
    Figure CN113938128B_ABST
Patent Text Reader

Abstract

This invention provides a phase adjustment method, apparatus, terminal device, and storage medium. The method includes: acquiring the input frequency of an input signal; adjusting the output frequency of an output signal according to the input frequency; acquiring the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency; and adjusting the output frequency of the output signal according to a preset rule when the input signal is detected to make the phase difference between the input signal and the output signal zero when the zero-crossing point of the input signal is detected. In this invention, when an input signal is detected, the output signal frequency is first adjusted to match the input signal frequency, then the output signal frequency is finely adjusted, and the zero-crossing points of the input and output signals are waited for to coincide. Finally, the output signal frequency is restored to achieve phase synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a phase adjustment method, apparatus, terminal equipment, and storage medium. Background Technology

[0002] Phase synchronization has a wide range of applications in life. For example, in communication systems, phase synchronization needs to be ensured during grid connection. Specifically, most current phase synchronization methods detect a specific signal point and then force synchronization, which makes the harmonic components of the output signal more complex and affects the stability of the equipment and the subsequent signal receiving system. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a phase adjustment method, apparatus, terminal device and storage medium that overcomes or at least partially solves the above problems.

[0004] In a first aspect, embodiments of the present invention provide a phase adjustment method, the method comprising:

[0005] Obtain the input frequency of the input signal;

[0006] Adjust the output frequency of the output signal according to the input frequency;

[0007] When the output frequency is the same as the input frequency, the phase difference between the input signal and the output signal is obtained;

[0008] When the input signal is detected to have crossed zero, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0.

[0009] Optionally, before acquiring the input frequency of the input signal, the method further includes:

[0010] Output signal at a preset frequency in real time.

[0011] Optionally, the preset rule is:

[0012]

[0013] Where fout is the output frequency of the output signal; f is the input frequency; θ is the phase difference between the input signal and the output signal; and N represents the rotational speed or number of turns.

[0014] Optionally, the method further includes:

[0015] When the m-th zero-crossing point of the input signal arrives, the phase difference between the input signal and the output signal is 0;

[0016] The time consumed for synchronizing the input and output signals is determined based on the number of zero-crossing points and the input frequency of the input signal.

[0017] Secondly, embodiments of the present invention provide a phase adjustment device, the device comprising:

[0018] The acquisition module is used to acquire the input frequency of the input signal;

[0019] An adjustment module is used to adjust the output frequency of the output signal according to the input frequency;

[0020] The calculation module is used to obtain the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency;

[0021] The synchronization module is used to adjust the output frequency of the output signal according to a preset rule when the input signal is detected to cross zero, so that the phase difference between the input signal and the output signal is 0.

[0022] Optionally, the acquisition module is further configured to:

[0023] Output signal at a preset frequency in real time.

[0024] Optionally, the preset rule is:

[0025]

[0026] Where fout is the output frequency of the output signal; f is the input frequency; and θ is the phase difference between the input signal and the output signal.

[0027] Optionally, the synchronization module is further configured to:

[0028] When the m-th zero-crossing point of the input signal arrives, the phase difference between the input signal and the output signal is 0;

[0029] The time consumed for synchronizing the input and output signals is determined based on the number of zero-crossing points and the input frequency of the input signal.

[0030] Thirdly, embodiments of the present invention provide a terminal device, including: at least one processor and a memory;

[0031] The memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the phase adjustment method provided in the first aspect.

[0032] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed, implements the phase adjustment method provided in the first aspect.

[0033] The embodiments of the present invention have the following advantages:

[0034] The phase adjustment method, apparatus, terminal device, and storage medium provided in this invention embodiment acquire the input frequency of the input signal; adjust the output frequency of the output signal according to the input frequency; when the output frequency is the same as the input frequency, acquire the phase difference between the input signal and the output signal; when the zero-crossing point of the input signal is detected, adjust the output frequency of the output signal according to a preset rule so that the phase difference between the input signal and the output signal is 0. In this invention embodiment, when an input signal is detected, the output signal frequency is first adjusted to be consistent with the input signal frequency, then the output signal frequency is finely adjusted, waiting for the zero-crossing points of the input and output to coincide, and finally the output signal frequency is restored to achieve phase synchronization. Attached Figure Description

[0035] Figure 1 This is a flowchart illustrating the steps of an embodiment of the phase adjustment method of the present invention;

[0036] Figure 2 This is a structural block diagram of an embodiment of the phase adjustment system of the present invention;

[0037] Figure 3 This is a flowchart illustrating another embodiment of the phase adjustment method of the present invention;

[0038] Figure 4 This is a schematic diagram of the effect of the value of N on the output signal in this invention;

[0039] Figure 5 This is a schematic diagram of the synchronization waveform of the present invention;

[0040] Figure 6 This is a structural block diagram of an embodiment of the phase adjustment device of the present invention;

[0041] Figure 7 This is a schematic diagram of the structure of a terminal device according to the present invention. Detailed Implementation

[0042] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] Reference Figure 1 The diagram illustrates a step flowchart of an embodiment of the phase adjustment method of the present invention, which may specifically include the following steps:

[0044] S101. Obtain the input frequency of the input signal;

[0045] Specifically, such as Figure 2 As shown, Figure 2This is a structural block diagram of an embodiment of a phase adjustment system according to the present invention. This phase adjustment system is a synchronization system, which has both input and output signals. In some cases, the frequency and phase of the output signal of the synchronization system need to be consistent with the frequency and phase of a certain input signal; this is called "phase synchronization." In this embodiment, the synchronization system is installed on a terminal device, which can be a computer, tablet, or mobile phone. Before acquiring an input signal, the synchronization system continuously outputs an output signal of a certain frequency and phase. When an input signal is input, the synchronization system acquires the input frequency of the input signal.

[0046] S102. Adjust the output frequency of the output signal according to the input frequency;

[0047] Specifically, the synchronization system adjusts the output frequency of the output signal according to the input frequency of the input signal.

[0048] For example, if the input frequency of the input signal is 100 and the output frequency of the output signal is 120, the synchronization system will reduce the output frequency of 120 to approach the input frequency of 100.

[0049] S103. When the output frequency is the same as the input frequency, obtain the phase difference between the input signal and the output signal;

[0050] Specifically, the synchronization system adjusts the output frequency of the output signal to be the same as the input frequency to obtain the phase difference between the input and output signals.

[0051] For example, if the output frequency is adjusted from 120 to 100, the phase difference between the input signal and the output signal is obtained.

[0052] S104. When the input signal is detected to have crossed zero, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0.

[0053] Specifically, when the synchronization system detects that the input signal has crossed zero, it readjusts the output frequency of the output signal according to a preset rule until the phase difference between the output signal and the input signal is the same, that is, the phase difference is 0.

[0054] The phase adjustment method provided in this embodiment of the invention obtains the input frequency of the input signal; adjusts the output frequency of the output signal according to the input frequency; obtains the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency; when the zero-crossing point of the input signal is detected, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0. In this embodiment of the invention, when an input signal is detected, the output signal frequency is first adjusted to be consistent with the input signal frequency, then the output signal frequency is finely adjusted, and the zero-crossing points of the input and output signals are waited to coincide. Finally, the output signal frequency is restored to achieve phase synchronization.

[0055] Another embodiment of the present invention further supplements the phase adjustment method provided in the above embodiments.

[0056] Optionally, before acquiring the input frequency of the input signal, the method further includes:

[0057] Output signal at a preset frequency in real time.

[0058] Optionally, the preset rule is:

[0059]

[0060] Where fout is the output frequency of the output signal; f is the input frequency; θ is the phase difference between the input signal and the output signal; and N represents the rotational speed or number of turns.

[0061] Optionally, the method further includes:

[0062] When the m-th zero-crossing point of the input signal arrives, the phase difference between the input signal and the output signal is 0;

[0063] The time consumed for synchronizing the input and output signals is determined based on the number of zero-crossing points and the input frequency of the input signal.

[0064] Figure 3 This is a flowchart illustrating another embodiment of the phase adjustment method of the present invention, as shown below. Figure 3 As shown, the phase adjustment method includes:

[0065] Assuming this synchronization system initially outputs a stable signal with frequency fout, and checks for input signals, when an input signal with frequency f is detected at a certain moment, the synchronization system will perform the following steps:

[0066] 1. Adjust the output frequency of the output signal of this synchronization system to fout, so that it is equal to the input frequency f. At this time, the phase difference between the output signal and the input signal is detected to be θ (-π<θ<π).

[0067] 2. When the zero-crossing point of the input signal arrives at a certain moment, immediately adjust the output signal to... (Input signal lag is used to determine positive values ​​and lead is used to determine negative values; N = 1, 2, 3, ...);

[0068] 3. After adjustment, wait for the Nth zero-crossing point of the input signal to arrive, and the phase of the output signal will be consistent with that of the input signal;

[0069] 4. Readjust the output signal frequency to fout = f;

[0070] 5. Completed synchronously, taking N / f seconds.

[0071] The value of N affects the output frequency of the output signal (θ has been converted into an angle value). A schematic diagram of the output signal corresponding to different values ​​of N is shown below. Figure 4 As shown.

[0072] In this embodiment of the invention, when an input signal is detected, the output frequency of the output signal is first adjusted to match the input frequency of the input signal. Then, the frequency of the output signal is finely adjusted until the zero-crossing points of the input and output signals coincide. Finally, the output signal frequency is restored to achieve phase synchronization. A schematic diagram of the specific synchronization process is shown below. Figure 5 As shown, the process includes three stages: The first stage involves the input signal lagging behind the output signal by a phase difference of θ; the second stage involves adjusting the output signal frequency to synchronize with the input signal at its zero-crossing phase, where N=5; and the third stage involves adjusting the output signal frequency to equal the input signal frequency. These three stages of adjustment smoothly achieve frequency and phase synchronization, enabling seamless phase synchronization and minimizing interference and potential instability in the synchronization system and subsequent output stages. In some cases, while short-term frequency deviations may not be critical, a continuous output signal is required, along with stable phase synchronization with any incoming signal. Therefore, a sudden phase change is unacceptable during phase synchronization; a smooth transition is necessary to achieve seamless phase and frequency synchronization.

[0073] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0074] The phase adjustment method provided in this embodiment of the invention obtains the input frequency of the input signal; adjusts the output frequency of the output signal according to the input frequency; obtains the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency; when the zero-crossing point of the input signal is detected, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0. In this embodiment of the invention, when an input signal is detected, the output signal frequency is first adjusted to be consistent with the input signal frequency, then the output signal frequency is finely adjusted, and the zero-crossing points of the input and output signals are waited to coincide. Finally, the output signal frequency is restored to achieve phase synchronization.

[0075] Another embodiment of the present invention provides a phase adjustment device for performing the phase adjustment method provided in the above embodiments.

[0076] Reference Figure 6 The diagram illustrates a structural block diagram of an embodiment of the phase adjustment device of the present invention. The device may specifically include the following modules: an acquisition module 601, an adjustment module 602, a calculation module 603, and a synchronization module 604, wherein:

[0077] The acquisition module 601 is used to acquire the input frequency of the input signal;

[0078] The adjustment module 602 is used to adjust the output frequency of the output signal according to the input frequency;

[0079] The calculation module 603 is used to obtain the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency;

[0080] The synchronization module 604 is used to adjust the output frequency of the output signal according to a preset rule when the input signal is detected to cross zero, so that the phase difference between the input signal and the output signal is 0.

[0081] The phase adjustment device provided in this embodiment of the invention acquires the input frequency of the input signal; adjusts the output frequency of the output signal according to the input frequency; acquires the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency; when the zero-crossing point of the input signal is detected, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0. In this embodiment of the invention, when an input signal is detected, the output signal frequency is first adjusted to be consistent with the input signal frequency, then the output signal frequency is finely adjusted, and the zero-crossing points of the input and output signals are waited to coincide. Finally, the output signal frequency is restored to achieve phase synchronization.

[0082] Another embodiment of the present invention further provides a description of the phase adjustment device provided in the above embodiments.

[0083] Optionally, the acquisition module is further configured to:

[0084] Output signal at a preset frequency in real time.

[0085] Optionally, the preset rule is:

[0086]

[0087] Where fout is the output frequency of the output signal; f is the input frequency; and θ is the phase difference between the input signal and the output signal.

[0088] Optionally, the synchronization module is further configured to:

[0089] When the m-th zero-crossing point of the input signal arrives, the phase difference between the input signal and the output signal is 0;

[0090] The time consumed for synchronizing the input and output signals is determined based on the number of zero-crossing points and the input frequency of the input signal.

[0091] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.

[0092] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0093] In another embodiment of the present invention, a terminal device is provided for executing the phase adjustment method provided in the above embodiments.

[0094] Figure 7 This is a schematic diagram of the structure of a terminal device according to the present invention, such as... Figure 7 As shown, the terminal device includes: at least one processor 701 and a memory 702; the memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the phase adjustment method provided in the above embodiments.

[0095] The terminal device provided in this embodiment acquires the input frequency of the input signal; adjusts the output frequency of the output signal according to the input frequency; acquires the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency; when the zero-crossing point of the input signal is detected, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0. In this embodiment, when an input signal is detected, the output signal frequency is first adjusted to be consistent with the input signal frequency, then the output signal frequency is finely adjusted, and the zero-crossing points of the input and output signals are waited to coincide. Finally, the output signal frequency is restored to achieve phase synchronization.

[0096] Another embodiment of this application provides a computer-readable storage medium storing a computer program that, when executed, implements the phase adjustment method provided in any of the above embodiments.

[0097] According to the computer-readable storage medium of this embodiment, the input frequency of the input signal is acquired; the output frequency of the output signal is adjusted according to the input frequency; when the output frequency is the same as the input frequency, the phase difference between the input signal and the output signal is acquired; when the zero-crossing point of the input signal is detected, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0. In this embodiment of the invention, when an input signal is detected, the output signal frequency is first adjusted to be consistent with the input signal frequency, then the output signal frequency is finely adjusted, the zero-crossing points of the input and output are waited for to coincide, and finally the output signal frequency is restored to achieve phase synchronization.

[0098] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0099] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0100] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or electronic device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or electronic device that includes said element.

Claims

1. A phase adjustment method, characterized in that, The method includes: Obtain the input frequency of the input signal; Adjust the output frequency of the output signal according to the input frequency; When the output frequency is the same as the input frequency, the phase difference between the input signal and the output signal is obtained; When the input signal is detected to have crossed zero, the output frequency of the output signal is adjusted according to a preset rule so that the phase difference between the input signal and the output signal is 0. Before acquiring the input frequency of the input signal, the method further includes: Output signal with a preset frequency in real time; The preset rule is as follows: ; Where fout is the output frequency of the output signal; f is the input frequency; θ is the phase difference between the input signal and the output signal; and N represents the rotational speed or number of turns. The method further includes: When the m-th zero-crossing point of the input signal arrives, the phase difference between the input signal and the output signal is 0; The time consumed for synchronizing the input and output signals is determined based on the number of zero-crossing points and the input frequency of the input signal.

2. A phase adjustment device, characterized in that, The device includes: The acquisition module is used to acquire the input frequency of the input signal; An adjustment module is used to adjust the output frequency of the output signal according to the input frequency; The calculation module is used to obtain the phase difference between the input signal and the output signal when the output frequency is the same as the input frequency; A synchronization module is used to adjust the output frequency of the output signal according to a preset rule when the zero-crossing point of the input signal is detected, so that the phase difference between the input signal and the output signal is 0. The acquisition module is also used for: Output signal with a preset frequency in real time; The preset rule is as follows: ; Where fout is the output frequency of the output signal; f is the input frequency; θ is the phase difference between the input signal and the output signal; and N represents the rotational speed or number of turns. The synchronization module is also used for: When the m-th zero-crossing point of the input signal arrives, the phase difference between the input signal and the output signal is 0; The time consumed for synchronizing the input and output signals is determined based on the number of zero-crossing points and the input frequency of the input signal.

3. A terminal device, characterized in that, include: At least one processor and memory; The memory stores computer programs; The at least one processor executes the computer program stored in the memory to implement the phase adjustment method of claim 1.

4. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the phase adjustment method of claim 1.

Citation Information

Patent Citations

  • High-precision phase-locked loop and phase locking method

    CN104104385A

  • Method for achieving voltage frequency and phase position tracking by use of ECAP interruption

    CN106873476A