A method and system for in-phase or anti-phase detection of a target signal

By setting the detection frequency Fc and using a low-pass filter to separate the signal, the problems of signal detection complexity and large computational load in the existing technology are solved, and simple and fast in-phase and out-of-phase signal detection is realized.

CN116319442BActive Publication Date: 2026-02-13TOEC TECHNOLOGLY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211565513.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-07
Publication Date
2026-02-13
Estimated Expiration
2042-12-07

AI Technical Summary

Technical Problem

Existing technologies for detecting in-phase and out-of-phase signals in data transmission involve complex algorithm designs and large computational loads, making them unsuitable for rapid application.

Method used

By setting the detection frequency Fc to meet the requirement that the sampling rate Fs of the target signal is a periodic signal, digital down-conversion is performed and the signal is separated using a low-pass filter. The detection period is then used to determine whether the signal is in phase or out of phase.

Benefits of technology

It achieves simple and fast in-phase and out-of-phase signal detection, reducing the amount of computation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319442B_ABST
    Figure CN116319442B_ABST
Patent Text Reader

Abstract

The application provides a method for in-phase or anti-phase detection of a target signal, comprising the following steps: S1, setting a detection frequency Fc, wherein the detection frequency Fc is a periodic signal at a sampling rate Fs of the received target signal and can be separated by a low-pass filter; S2, digitally down-converting the target signal to move its frequency to the selected detection frequency Fc; S3, separating the target signal by using a low-pass filter, and selecting the detection frequency Fc as the cutoff frequency of the low-pass filter; and S4, detecting the target signal passing through the low-pass filter in a detection period to determine whether the target signal is in-phase or anti-phase. The method and system can quickly detect the in-phase and anti-phase of the target signal, and are simple and have small calculation amount.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, in particular to a method and system for detecting in-phase or anti-phase of a target signal, an electronic device and a readable storage medium. BACKGROUND

[0002] In the process of data communication, many communication protocols will use in-phase and anti-phase signals of a certain agreed signal as important interactive signs. In this case, in order to analyze the information sent by the opposite end, the agreed signal needs to be separated from the mixed signal, and then the in-phase and anti-phase signals are detected.

[0003] At present, there has been extensive research on signal detection and phase detection, but most of the application scenarios are complex, the algorithm design is complicated, and the operation amount is large, which is not suitable for application in the above-mentioned situation. Therefore, it is necessary to propose a method which is simple to implement and has small operation amount to quickly detect the in-phase and anti-phase of the target signal. SUMMARY

[0004] Technical problems to be solved

[0005] In view of the above-mentioned shortcomings of the prior art, the present application provides a method and system for detecting in-phase or anti-phase of a target signal, which can quickly detect the in-phase and anti-phase of the target signal, and is simple to implement and has small operation amount.

[0006] Technical scheme

[0007] In order to achieve the above-mentioned purposes, the present application is implemented by the following technical scheme:

[0008] The present application provides a method for detecting in-phase or anti-phase of a target signal, characterized in that it comprises the following steps:

[0009] S1, setting a detection frequency Fc, which meets the condition of being a periodic signal at the sampling rate Fs of the received target signal and can be separated by a low-pass filter alone;

[0010] S2, digitally down-converting the target signal to move its frequency to the selected detection frequency Fc;

[0011] S3, separating the target signal using a low-pass filter, and selecting the detection frequency Fc as the cutoff frequency of the low-pass filter;

[0012] S4, detecting the target signal passing through the low-pass filter according to the detection period to determine whether the target signal is in-phase or anti-phase.

[0013] Further, the detection frequency Fc is selected to be the frequency with the smallest period that meets the condition.

[0014] Further, step S4 specifically comprises:

[0015] S4.1, initializing input parameters, specifically comprising: initializing detection period N and anti-phase signal detection threshold, setting initial values of signal reference period array, this period decision result, last period decision result, same-phase signal period number count, anti-phase signal period number count and periodic disappearance count all to 0;

[0016] S4.2, clearing period amplitude sum and period difference sum of reference period data;

[0017] S4.3, inputting period data of the target signal after the low-pass filter, calculating difference between input period data and the reference period data, if less than 1, determining as same-phase signal, outputting this period decision result equal to 1, and adding 1 to the same-phase signal period number count to continue judging; if the same-phase signal period number count is less than 2, setting the this period decision result equal to the last period decision result, and updating the signal reference period array as current input period data, if the same-phase signal period number count is greater than or equal to 2, the this period decision result equal to 1, and then going to S4.5; if the difference between input period data and the reference period data is greater than 1, continuing to determine signal anti-phase or interruption;

[0018] S4.4, if the difference between input period data and the reference period data is greater than the anti-phase signal detection threshold, determining as anti-phase signal, adding 1 to the anti-phase signal period number count to continue judging, if the anti-phase signal period number count is less than 2, the this period decision result equal to the last period decision result, if the anti-phase signal period number count is greater than or equal to 2, the this period decision result equal to -1, and then going to step S4.5; the difference between input period data and the reference period data is greater than 1 and less than the anti-phase signal detection threshold, determining as signal interruption, adding 1 to the periodic disappearance count to continue judging, if the periodic disappearance count is less than 2, the this period decision result equal to the last period decision result, if the periodic disappearance count is greater than or equal to 2, the this period decision result equal to -1, and then going to S4.5;

[0019] S4.5, updating last period decision result, the last period decision result equal to the this period decision result.

[0020] Further, the detection period N initialization method is:

[0021]

[0022] Wherein, k takes the value of making the detection period N the minimum positive integer.

[0023] Further, the in-phase or anti-phase occurrence position of the target signal is determined according to the current period decision result and the last period decision result, wherein if the last period decision result is equal to 0 and the current period decision result is equal to 1, the in-phase occurrence position is determined; if the last period decision result is equal to 1 and the current period decision result is equal to -1, the anti-phase occurrence position is determined; if the last period decision result is equal to -1 and the current period decision result is equal to 1, the position of the signal re-inversion is determined.

[0024] Based on the same inventive concept, the present application provides a system for in-phase or anti-phase detection of a target signal, which adopts the detection method as described above, and comprises:

[0025] a frequency conversion module, configured to perform digital down-conversion on the target signal so as to shift the frequency of the target signal to a selected detection frequency Fc;

[0026] a low-pass filter, configured to separate the target signal and select the detection frequency Fc as the cutoff frequency of the low-pass filter;

[0027] a detection module, configured to detect the target signal passing through the low-pass filter according to a detection period so as to determine the in-phase or anti-phase of the target signal, and the detection module can set the detection frequency Fc so that the detection frequency Fc meets the condition of being a periodic signal under the sampling rate Fs of the target signal and can be separated by the low-pass filter.

[0028] Further, the detection process of the detection module is as follows:

[0029] S4.1, initializing input parameters, specifically including: initializing the detection period N and the anti-phase signal detection threshold, setting the initial value of the signal reference period array, the current period decision result, the last period decision result, the in-phase signal period count, the anti-phase signal period count and the periodic disappearance count to 0;

[0030] S4.2, clearing the period amplitude sum and the period difference sum of the reference period data;

[0031] S4.3, input the period data of the target signal through the low-pass filter, calculate the difference between the input period data and the reference period data, if the difference between the input period data and the reference period data is less than 1, it is determined that the signal is an in-phase signal, the current period decision result is output as 1, and the in-phase signal period count is increased by 1 and the judgment continues; if the in-phase signal period count is less than 2, the current period decision result is equal to the previous period decision result, the data_N_temp is updated as the current input period data, if the in-phase signal period count is greater than or equal to 2, the current period decision result is equal to 1, and then go to S4.5; if the difference between the input period data and the reference period data is greater than 1, the judgment of signal inversion or interruption continues;

[0032] S4.4, if the difference between the input period data and the reference period data is greater than the anti-phase signal detection threshold, it is determined that the signal is an anti-phase signal, the anti-phase signal period count is increased by 1 and the judgment continues, if the anti-phase signal period count is less than 2, the current period decision result is equal to the previous period decision result, if the anti-phase signal period count is greater than or equal to 2, the current period decision result is equal to -1, and then go to S4.5; if the difference between the input period data and the reference period data is greater than 1 and less than the anti-phase signal detection threshold, it is determined that the signal is interrupted, the period disappearance count is increased by 1 and the judgment continues, if the period disappearance count is less than 2, the current period decision result is equal to the previous period decision result, if the period disappearance count is greater than or equal to 2, the current period decision result is equal to -1, and then go to S4.5;

[0033] S4.5, update the judgment result of the previous period, the previous period decision result is equal to the current period decision result.

[0034] Further, the detection module is further used for judging the inversion position of the target signal according to the current period decision result and the judgment result of the previous period, if the previous period decision result is equal to 0 and the current period decision result is equal to 1, it is an in-phase signal position; if the previous period decision result is equal to 1 and the current period decision result is equal to -1, it is an anti-phase signal position; if the previous period decision result is equal to -1 and the current period decision result is equal to 1, it is a signal inversion position again.

[0035] Based on the same inventive concept, the application further provides an electronic device comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is executed by the processor to implement the method of any one of the above.

[0036] Based on the same inventive concept, the application further provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method described in any one of the preceding items.

[0037] Advantages

[0038] The application provides a method and system for in-phase or anti-phase detection of a target signal, which are simple in design and operation and can quickly separate the target signal and detect the in-phase and anti-phase of the signal. BRIEF DESCRIPTION OF DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0040] Figure 1 A method for in-phase or anti-phase detection of a target signal provided by an embodiment of the application;

[0041] Figure 2 A method for in-phase or anti-phase detection of a target signal provided by an embodiment of the application;

[0042] Figure 3 A method for in-phase or anti-phase detection of a target signal provided by an embodiment of the application;

[0043] Figure 4 A method for in-phase or anti-phase detection of a target signal provided by an embodiment of the application;

[0044] Figure 5 A method for in-phase or anti-phase detection of a target signal provided by an embodiment of the application;

[0045] Figure 6 A method for in-phase or anti-phase detection of a target signal provided by an embodiment of the application;

[0046] Figure 7 A method for in-phase or anti-phase detection of a target signal provided by an embodiment of the application; DETAILED DESCRIPTION

[0047] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0048] With reference to Figure 1 An embodiment of the present application provides a method for in-phase or anti-phase detection of a target signal, comprising the following steps:

[0049] S1, setting a detection frequency Fc, wherein the detection frequency Fc meets a periodic signal under a sampling rate Fs of the received target signal and can be separated by a low-pass filter alone;

[0050] S2, performing digital down-conversion on the target signal to move the frequency of the target signal to the selected detection frequency Fc;

[0051] S3, separating the target signal by using a low-pass filter, and selecting the detection frequency Fc as a cutoff frequency of the low-pass filter;

[0052] S4, detecting the target signal passing through the low-pass filter according to a detection period to determine in-phase or anti-phase of the target signal.

[0053] In the embodiment, the detection frequency Fc is selected as a frequency meeting the condition of the minimum period, so as to reduce delay and error.

[0054] In the embodiment, with reference to Figure 2 , the step S4 specifically comprises:

[0055] S4.1, initializing input parameters, specifically comprising: initializing a detection period N and an anti-phase signal detection threshold threshold, and setting initial values of signal reference period data data_N_temp, a current period decision result signal_flag, a last period decision result signal_flag_pre, an in-phase signal period number count_1, an anti-phase signal period number count_i1 and a period disappearance count count_0 as 0;

[0056] S4.2, clearing period amplitude sum and period difference sum of the reference period data;

[0057] S4.3, input the period data of the target signal through the low-pass filter, calculate the difference sum_diff between the input period data and the reference period data, if sum_diff < 1, determine that the signal is a same phase signal, output signal_flag = 1, and continue to determine after count_1 is added by 1; if count_1 < 2, signal_flag = signal_flag_pre, and data_N_temp is updated as the current input period data, if count_1 ≥ 2, signal_flag = 1, and then go to S4.5; if sum_diff > 1, continue to determine the signal phase inversion or interruption;

[0058] S4.4, if sum_diff > threshold, determine that the signal is an inverse phase signal, continue to determine after count_i1 is added by 1, if count_i1 < 2, signal_flag = signal_flag_pre, if count_i1 ≥ 2, signal_flag = -1, and then go to S4.5; if 1 < sum_diff < threshold, determine that the signal is interrupted, continue to determine after count_0 is added by 1, if count_0 < 2, signal_flag = signal_flag_pre, if count_0 ≥ 2, signal_flag = -1, and then go to S4.5;

[0059] S4.5, update the determination result of the last period signal_flag_pre = signal_flag.

[0060] In the embodiment, the detection period N initialization method is:

[0061]

[0062] wherein k takes a value that makes the detection period N a minimum positive integer, so that the detection period N at this time is the period of the frequency sinusoidal wave to be detected.

[0063] In the embodiment, refer to Figure 2The method further comprises judging the phase-inverted occurrence position of the target signal according to the current period decision result signal_flag and the previous period decision result signal_flag_pre: if signal_flag_pre=0 and signal_flag=1, the in-phase signal occurrence position is determined; if signal_flag_pre=1 and signal_flag=-1, the anti-phase signal occurrence position is determined; if signal_flag_pre=-1 and signal_flag=1, the signal phase-inverted position is determined.

[0064] Based on the same inventive concept, the present application further provides a system for in-phase or anti-phase detection of a target signal, which adopts any of the above detection methods, and comprises:

[0065] a frequency conversion module, configured to perform digital down-conversion on the target signal so as to shift the frequency of the target signal to a selected detection frequency Fc;

[0066] a low-pass filter, configured to separate the target signal and select the detection frequency Fc as the cutoff frequency of the low-pass filter;

[0067] a detection module, configured to detect the target signal passing through the low-pass filter according to a detection period, so as to determine the in-phase or anti-phase of the target signal, and the detection module can set the detection frequency Fc so that the detection frequency Fc is a periodical signal under the sampling rate Fs of the target signal and can be separated by the low-pass filter.

[0068] In the embodiment, the detection process of the detection module is as follows:

[0069] S4.1, initializing input parameters, specifically including: initializing the detection period N and the anti-phase signal detection threshold threshold, setting the initial value of the signal reference period array data_N_temp, the current period decision result signal_flag, the previous period decision result signal_flag_pre, the in-phase signal period count count_1, the anti-phase signal period count count_i1 and the period disappearance count count_0 to 0;

[0070] S4.2, clearing the period amplitude sum and the period difference sum of the reference period data;

[0071] S4.3, input the period data of the target signal through the low-pass filter, calculate the difference sum_diff between the input period data and the reference period data, if sum_diff < 1, determine that the signal is in-phase, output signal_flag = 1, and continue to determine after count_1 is added by 1; if count_1 < 2, signal_flag = signal_flag_pre, and data_N_temp is updated as the current input period data, if count_1 ≥ 2, signal_flag = 1, and then go to S4.5; if sum_diff > 1, continue to determine the signal inversion or interruption;

[0072] S4.4, if sum_diff > threshold, determine that the signal is anti-phase, continue to determine after count_i1 is added by 1, if count_i1 < 2, signal_flag = signal_flag_pre, if count_i1 ≥ 2, signal_flag = -1, and then go to S4.5; if 1 < sum_diff < threshold, determine that the signal is interrupted, continue to determine after count_0 is added by 1, if count_0 < 2, signal_flag = signal_flag_pre, if count_0 ≥ 2, signal_flag = -1, and then go to S4.5;

[0073] S4.5, update the determination result of the last period signal_flag_pre = signal_flag.

[0074] In the embodiment, the detection module is further configured to determine the anti-phase occurrence position of the target signal according to the determination result signal_flag of the current period and the determination result signal_flag_pre of the last period: if signal_flag_pre = 0 and signal_flag = 1, the signal is in-phase; if signal_flag_pre = 1 and signal_flag = -1, the signal is anti-phase; if signal_flag_pre = -1 and signal_flag = 1, the signal is inverted again.

[0075] In the specific implementation, refer to Figures 3-7 , and the in-phase and anti-phase of the 600Hz and 3kHz signals are detected from the mixed signal of 1.8kHz, 3kHz and 600Hz, the sampling rate of the signal is 9.6k, and the 3kHz and 600Hz signals are inverted twice at two same positions.

[0076] Firstly, the simulation platform MATLAB is used:

[0077] The detection frequency is selected as 400Hz, and the period of 400Hz sine wave is calculated as N=24. Figure 1 The 600Hz signal is shifted to 400Hz, and then is sent into the detection module according to the period N after passing through the low-pass filter with the cutoff frequency of 400Hz, and the judgment result is shown in the following table. Figure 5 The in-phase signal is detected in the 11th period, and the anti-phase is detected twice in the 65th and 87th periods. The 3kHz signal is shifted to 400Hz, and then is sent into the detection module according to the period N after passing through the low-pass filter with the cutoff frequency of 400Hz, and the judgment result is shown in the following table. Figure 7 The in-phase signal is detected in the 11th period, and the anti-phase is detected twice in the 65th and 87th periods. The detection results of the 600Hz signal are the same, which proves the correctness of the method.

[0078] Secondly, the hardware platform TMS320F28335 is used:

[0079] The detection frequency is selected as 400Hz, and the period of 400Hz sine wave is calculated as N=24. Figure 1 The 600Hz signal is shifted to 400Hz, and then is sent into the detection module according to the period N after passing through the low-pass filter with the cutoff frequency of 400Hz, and the judgment result is the same as above. The 3kHz signal is shifted to 400Hz, and then is sent into the detection module according to the period N after passing through the low-pass filter with the cutoff frequency of 400Hz, and the in-phase signal is detected in the 11th period, and the anti-phase is detected twice in the 65th and 87th periods. The detection results of the 600Hz signal are the same, which proves the correctness of the method.

[0080] Based on the same inventive concept, the application further provides an electronic device comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is executed by the processor to implement the method for detecting an in-phase or anti-phase target signal.

[0081] The processor can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor (such as a GPU (Graphics Processing Unit)), or other data processing chips in some embodiments. The processor is usually used to control the overall operation of the electronic device. In this embodiment, the processor is used to run the program code or process data stored in the memory, for example, the program code of the method for detecting an in-phase or anti-phase target signal.

[0082] The memory includes at least one type of readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. In other embodiments, the memory can also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. Of course, the memory can also include both the internal storage unit and the external storage device of the electronic device. In the present embodiment, the memory is generally used to store the operating method and various application software installed on the electronic device, such as the program code of the in-phase or anti-phase detection method for the target signal, etc. In addition, the memory can also be used to temporarily store various data that have been output or will be output.

[0083] Based on the same inventive concept, the present application also provides a readable storage medium, which stores a computer program. When the computer program is executed by a processor, the in-phase or anti-phase detection method for the target signal is realized.

[0084] The above embodiments are only used to illustrate the technical solutions of the present application, rather than limit the same. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for detecting in-phase or out-of-phase target signals, characterized in that, Includes the following steps: S1. Set the detection frequency The detection frequency Satisfying the sampling rate of the received target signal The next signal is a periodic signal, which can be separated by low-pass filtering; S2. Perform digital down-conversion on the target signal to shift its frequency to the selected detection frequency. superior; S3. Use a low-pass filter to separate the target signal and select the detection frequency. This is the cutoff frequency of the low-pass filter; S4. The target signal passing through the low-pass filter is detected according to the detection period to determine whether the target signal is in phase or out of phase; Step S4 specifically includes: S4.1 Initialize input parameters, specifically including: initializing the detection period. Set the initial values ​​of the signal reference period array data_N_temp, the current period decision result signal_flag, the previous period decision result signal_flag_pre, the in-phase signal period count count_1, the out-of-phase signal period count count_i1, and the periodic disappearance count count_0 to 0, along with the in-phase signal detection threshold threshold. S4.

2. Clear the sum of the period amplitude and the sum of the period difference of the reference period data to zero; S4.3: Input the periodic data of the target signal after passing through the low-pass filter, calculate the difference sum_diff between the input periodic data and the reference periodic data. If sum_diff < 1, it is determined to be an in-phase signal, output signal_flag = 1, and increment count_1 by 1 before continuing the judgment. If count_1 < 2, then signal_flag = signal_flag_pre, and update data_N_temp to the current input periodic data. If count_1 ≥ 2, then signal_flag = 1, and then go to S4.

5. If sum_diff > 1, continue to determine whether the signal is inverted or interrupted. S4.4 If sum_diff > threshold, it is determined to be an inverted signal. Count_i1 is incremented by 1 and the process continues. If count_i1 < 2, signal_flag = signal_flag_pre; if count_i1 ≥ 2, signal_flag = -1. Then proceed to step S4.

5. If 1 < sum_diff < threshold, it is determined to be a signal interruption. Count_0 is incremented by 1 and the process continues. If count_0 < 2, signal_flag = signal_flag_pre; if count_0 ≥ 2, signal_flag = -1. Then proceed to step S4.

5. S4.5 Update the judgment result of the previous cycle: signal_flag_pre = signal_flag.

2. The method for detecting in-phase or out-of-phase target signals according to claim 1, characterized in that, The detection frequency Choose the frequency with the smallest period that meets the conditions.

3. The method for detecting in-phase or out-of-phase target signals according to claim 1, characterized in that, The initialization method for the detection period N is as follows: in, Choose a value that makes the detection period N the smallest positive integer.

4. The method for detecting in-phase or out-of-phase target signals according to claim 1, characterized in that, It also includes determining the position where the target signal is out of phase based on the decision result signal_flag of the current cycle and the decision result signal_flag_pre of the previous cycle: if signal_flag_pre = 0 and signal_flag = 1, it is the position where the signal is in phase; if signal_flag_pre = 1 and signal_flag = -1, it is the position where the signal is out of phase; if signal_flag_pre = -1 and signal_flag = 1, it is the position where the signal is out of phase again.

5. A system for detecting in-phase or out-of-phase target signals, characterized in that, The detection method described in any one of claims 1-4 includes: The frequency conversion module is used to digitally down-convert the target signal, shifting its frequency to the selected detection frequency. superior; A low-pass filter is used to separate the target signal and select the detection frequency. This is the cutoff frequency of the low-pass filter; The detection module is used to detect the target signal after passing through the low-pass filter according to a detection period to determine whether the target signal is in phase or out of phase. Furthermore, the detection module can set the detection frequency. So that the detection frequency is Satisfying the sampling rate of the target signal The following is a periodic signal, which can be separated separately by low-pass filtering.

6. The system for detecting in-phase or out-of-phase target signals according to claim 5, characterized in that, The detection process of the detection module is as follows: S4.1 Initialize input parameters, specifically including: initializing the detection period. Set the initial values ​​of the signal reference period array data_N_temp, the current period decision result signal_flag, the previous period decision result signal_flag_pre, the in-phase signal period count count_1, the out-of-phase signal period count count_i1, and the periodic disappearance count count_0 to 0, along with the in-phase signal detection threshold threshold. S4.

2. Clear the sum of the period amplitude and the sum of the period difference of the reference period data to zero; S4.3: Input the periodic data of the target signal after passing through the low-pass filter, calculate the difference sum_diff between the input periodic data and the reference periodic data. If sum_diff < 1, it is determined to be an in-phase signal, output signal_flag = 1, and increment count_1 by 1 before continuing the judgment. If count_1 < 2, then signal_flag = signal_flag_pre, and update data_N_temp to the current input periodic data. If count_1 ≥ 2, then signal_flag = 1, and then go to S4.

5. If sum_diff > 1, continue to determine whether the signal is inverted or interrupted. S4.4 If sum_diff > threshold, it is determined to be an inverted signal. Count_i1 is incremented by 1 and the process continues. If count_i1 < 2, signal_flag = signal_flag_pre; if count_i1 ≥ 2, signal_flag = -1. Then proceed to step S4.

5. If 1 < sum_diff < threshold, it is determined to be a signal interruption. Count_0 is incremented by 1 and the process continues. If count_0 < 2, signal_flag = signal_flag_pre; if count_0 ≥ 2, signal_flag = -1. Then proceed to step S4.

5. S4.5 Update the judgment result of the previous cycle: signal_flag_pre = signal_flag.

7. The system for detecting in-phase or out-of-phase target signals according to claim 6, characterized in that, The detection module is further configured to determine the position where the target signal is out of phase based on the current cycle decision result signal_flag and the previous cycle decision result signal_flag_pre: if signal_flag_pre = 0 and signal_flag = 1, it is the position where the signal is in phase; if signal_flag_pre = 1 and signal_flag = -1, it is the position where the signal is out of phase; if signal_flag_pre = -1 and signal_flag = 1, it is the position where the signal is out of phase again.

8. An electronic device, characterized in that, It includes a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, it implements the method as described in any one of claims 1-4.

9. A readable storage medium, characterized in that, The readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Anticollision millimeter wave radar target signal simulation system and method based on quadrature modulation system

    CN108983240A

  • FSK signal detector for detecting FSK signal through digital processing

    US20070071138A1