A method and apparatus for frame signal detection and synchronization based on a BPLC system

By receiving and processing time-domain data in a BPLC system and utilizing the peak and polarity characteristics of the channel impulse response for synchronization detection, the problem of high computational load in frame signal detection and synchronization is solved, achieving efficient frame signal detection and synchronization.

CN116846722BActive Publication Date: 2026-08-04BEIJING SIGBEAN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING SIGBEAN INFORMATION TECH CO LTD
Filing Date
2023-07-26
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing frame signal detection and synchronization methods in BPLC systems have difficulty reducing computational load while improving detection probability and synchronization performance. This is especially true in broadband high-speed communication where the computational load is too large and the system is sensitive to narrowband interference.

Method used

By receiving at least two sets of time-domain data, the peak value and peak-to-average power ratio of the channel impulse response (CIR) are determined, the timing point is adjusted to the head position of the preamble signal, at least four sets of data are received and processed to determine the SYNCM symbol, signal processing is performed using fast Fourier transform and inverse Fourier transform, and frame signal detection and synchronization are performed by combining V-shaped features and polarity features.

Benefits of technology

It improves the probability of frame signal detection and synchronization performance while reducing the amount of computation, making it suitable for broadband high-speed communication environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116846722B_ABST
    Figure CN116846722B_ABST
Patent Text Reader

Abstract

This invention discloses a method and apparatus for frame signal detection and synchronization based on a BPLC system. The method involves: determining a first CIR peak value based on at least two sets of first time-domain data; determining a CIR peak-to-average power ratio (PAPR) based on the first CIR peak value; determining the last set of first time-domain data in the at least two sets of first time-domain data as an OFDM symbol of SYNCP, and determining the position index of the first CIR peak value in the OFDM symbol of SYNCP; adjusting the timing point to the beginning position of the OFDM symbol of the preamble signal based on the position index of the first CIR peak value; receiving at least four sets of second time-domain data, and determining at least three second CIR peak values ​​based on the at least four sets of second time-domain data; and determining the last set of second time-domain data as the second OFDM symbol of SYNCP in response to the latest three second CIR peak values ​​conforming to a V-shaped characteristic and satisfying a set polarity characteristic. This method improves the probability of frame signal detection and frame signal synchronization performance while reducing computational load.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and specifically to a method and apparatus for frame signal detection and synchronization based on a BPLC system. Background Technology

[0002] With the development of technology, smart grid meter reading systems, energy internet, smart homes, and industrial data acquisition are increasingly penetrating people's production and daily lives. These applications all require data transmission during use. Common data transmission methods include Broadband Power Line Carrier (BPLC) technology. Using BPLC technology, data transmission can be carried out using existing power lines without the need for rewiring. It is simple to set up, has low cost, wide application range, and ensures information security.

[0003] In existing technologies, the Orthogonal Frequency Division Multiplexing (OFDM) symbols in BPLC systems are bursty frame signals. The primary task of the receiver is to detect these frame signals in real time. This detection serves to detect the arrival of frame signals in a burst system, determine the channel's busy / idle status, and perform timing synchronization to determine the boundaries of OFDM symbols within the frame signal. Most existing OFDM frame signal detection and synchronization methods are performed in the time domain, and are basically divided into three types: Method 1: Utilizing the time-domain sampled signals' delay autocorrelation characteristics for frame signal detection and synchronization; Method 2: Utilizing the time-domain sampled signals and the local... The frame signal is detected and synchronized based on the cross-correlation characteristics between the sampled sequences; Method 3 combines Method 1 and Method 2; Method 1 can be calculated recursively, with a small computational load, but it is very sensitive to narrowband interference, such as single-frequency sine waves, requiring complex filtering circuits, which affects the frame synchronization performance; Method 2 has slightly better resistance to noise and narrowband interference, but since a cross-correlation operation needs to be performed again for each updated sample point, the computational load, storage, and power consumption are very large, making it difficult to implement in broadband high-speed communication applications; Method 3 also struggles to simultaneously meet the requirements of performance and computational load.

[0004] In summary, the current problem to be solved is how to improve the probability of frame signal detection and the frame signal synchronization performance while reducing the amount of computation. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a method and apparatus for frame signal detection and synchronization based on a BPLC system, which can improve the probability of frame signal detection and the performance of frame signal synchronization, and reduce the amount of computation.

[0006] In a first aspect, embodiments of the present invention provide a method for frame signal detection and synchronization based on a BPLC system, the method comprising:

[0007] Receive at least two sets of first time-domain data;

[0008] The peak value of the first channel impulse response (CIR) is determined based on the at least two sets of first time-domain data;

[0009] Determine the CIR peak-to-average power ratio based on the first CIR peak value;

[0010] In response to the CIR peak-to-average power ratio being greater than a set threshold, the last set of the first time-domain data in the at least two sets of first time-domain data is determined to be an orthogonal frequency division multiplexing (OFDM) symbol of SYNCP, and the position index of the first CIR peak value in the OFDM symbol of SYNCP is determined.

[0011] The timing point is adjusted to the head position of the OFDM symbol of the preamble signal based on the position index of the first CIR peak.

[0012] Receive at least four sets of second time-domain data, wherein the second time-domain data is time-domain data received starting from the header position of the OFDM symbol of the preamble signal;

[0013] At least three second CIR peaks are determined based on the at least four sets of second time-domain data;

[0014] In response to the latest three second CIR peaks conforming to V-shaped characteristics and satisfying the set polarity characteristics, the last group of second time-domain data is determined to be the second OFDM symbol of SYNCM.

[0015] Optionally, determining the first channel impulse response (CIR) peak value based on the at least two sets of first time-domain data specifically includes:

[0016] The first time-domain data is subjected to a Fast Fourier Transform (FFT) to generate the first frequency-domain data;

[0017] The first CIR peak value is determined based on at least two sets of the first frequency domain data.

[0018] Optionally, determining the first CIR peak value based on at least two sets of the first frequency domain data specifically includes:

[0019] The at least two sets of the first frequency domain data are merged to generate the first merged frequency domain data;

[0020] The first merged frequency domain data is multiplied by the conjugate of the local frequency domain data of the preamble symbol to obtain the first product;

[0021] Perform an inverse fast Fourier transform (IFFT) on the first product to generate a set number of first CIR values;

[0022] The maximum value among the set number of first CIR values ​​is determined as the first CIR peak value.

[0023] Optionally, determining the CIR peak-to-average power ratio based on the first CIR peak value specifically includes:

[0024] The first CIR modulus value of the set quantity is determined based on the first CIR value of the set quantity;

[0025] The first mean value is determined based on the set number of first CIR modulus values;

[0026] The ratio of the first CIR peak value to the first mean value is determined as the CIR peak-to-mean ratio.

[0027] Optionally, after adjusting the timing point to the head position of the OFDM symbol of the preamble signal based on the position index of the first CIR peak, the method further includes:

[0028] After determining the last OFDM symbol of the location index of the first CIR peak, wait for the location index time domain signal points before receiving time domain data. The received time domain data is the second time domain data.

[0029] Optionally, at least three second CIR peaks are determined based on the at least four sets of second time-domain data, specifically including:

[0030] A second CIR peak value is determined by merging two adjacent groups of the second time domain data;

[0031] The second time-domain data is updated to obtain the latest three second CIR peak values.

[0032] Optionally, in response to the latest three second CIR peaks conforming to a V-shaped characteristic and satisfying a set polarity characteristic, the last group of the second time-domain data is determined to be the second OFDM symbol of SYNCM, specifically including:

[0033] In response to the latest three second CIR peaks conforming to a V-shaped feature, the location index and first polarity of the maximum value of the first CIR combined value are obtained;

[0034] The second polarity of the position index of the maximum value corresponding to the first second CIR peak in the latest three second CIR peaks and the third polarity of the position index of the maximum value corresponding to the third second CIR peak are determined based on the position index of the maximum value.

[0035] In response to the first polarity being the same as the second polarity and the first polarity being opposite to the third polarity, the last group of the second time-domain data is determined to be the second OFDM symbol of SYNCM.

[0036] Secondly, embodiments of the present invention provide a frame signal detection and synchronization apparatus based on a BPLC system, the apparatus comprising:

[0037] The first receiving unit is used to receive at least two sets of first time-domain data;

[0038] The first determining unit is configured to determine the first channel impulse response (CIR) peak value based on the at least two sets of first time-domain data;

[0039] The first determining unit is further configured to determine the CIR peak-to-average power ratio based on the first CIR peak value;

[0040] The second determining unit, in response to the CIR peak-to-average power ratio being greater than a set threshold, is used to determine that the last set of the first time-domain data in the at least two sets of first time-domain data is an orthogonal frequency division multiplexing (OFDM) symbol of SYNCP, and to determine the position index of the first CIR peak value in the OFDM symbol of SYNCP.

[0041] The adjustment unit is used to adjust the timing point to the head position of the OFDM symbol of the preamble signal according to the position index of the first CIR peak.

[0042] The second receiving unit is configured to receive at least four sets of second time-domain data, wherein the second time-domain data is time-domain data received starting from the head position of the OFDM symbol of the preamble signal;

[0043] The third determining unit is used to determine at least three second CIR peaks based on the at least four sets of second time-domain data;

[0044] The fourth determining unit, in response to the latest three second CIR peak values ​​conforming to the V-shaped characteristic and satisfying the set polarity characteristic, is used to determine that the last group of the second time-domain data is the second OFDM symbol of SYNCM.

[0045] Optionally, the first determining unit is specifically used for:

[0046] The first time-domain data is subjected to a Fast Fourier Transform (FFT) to generate the first frequency-domain data;

[0047] The first CIR peak value is determined based on at least two sets of the first frequency domain data.

[0048] Optionally, the first determining unit is further configured to:

[0049] The at least two sets of the first frequency domain data are merged to generate the first merged frequency domain data;

[0050] The first merged frequency domain data is multiplied by the conjugate of the local frequency domain data of the preamble symbol to obtain the first product;

[0051] Perform an inverse fast Fourier transform (IFFT) on the first product to generate a set number of first CIR values;

[0052] The maximum value among the set number of first CIR values ​​is determined as the first CIR peak value.

[0053] Optionally, the first determining unit is specifically used for:

[0054] The first CIR modulus value of the set quantity is determined based on the first CIR value of the set quantity;

[0055] The first mean value is determined based on the set number of first CIR modulus values;

[0056] The ratio of the first CIR peak value to the first mean value is determined as the CIR peak-to-mean ratio.

[0057] Optionally, the second receiving unit is further configured to:

[0058] After determining the last OFDM symbol of the location index of the first CIR peak, wait for the location index time domain signal points before receiving time domain data. The received time domain data is the second time domain data.

[0059] Optionally, the third determining unit is specifically used for:

[0060] A second CIR peak value is determined by merging two adjacent groups of the second time domain data;

[0061] The second time-domain data is updated to obtain the latest three second CIR peak values.

[0062] Optionally, the fourth determining unit is specifically used for:

[0063] In response to the latest three second CIR peaks conforming to a V-shaped feature, the location index and first polarity of the maximum value of the first CIR combined value are obtained;

[0064] The second polarity of the position index of the maximum value corresponding to the first second CIR peak in the latest three second CIR peaks and the third polarity of the position index of the maximum value corresponding to the third second CIR peak are determined based on the position index of the maximum value.

[0065] In response to the first polarity being the same as the second polarity and the first polarity being opposite to the third polarity, the last group of the second time-domain data is determined to be the second OFDM symbol of SYNCM.

[0066] Thirdly, embodiments of the present invention provide an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method as described in the first aspect or any one of the possible methods of the first aspect.

[0067] Fourthly, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the method as described in the first aspect or any one of the possible methods of the first aspect.

[0068] This invention embodiment receives at least two sets of first time-domain data; determines a first channel impulse response (CIR) peak value based on the at least two sets of first time-domain data; determines a CIR peak-to-average power ratio (PAPR) based on the first CIR peak value; in response to the PAPR being greater than a set threshold, determines the last set of first time-domain data in the at least two sets of first time-domain data as an Orthogonal Frequency Division Multiplexing (OFDM) symbol of SYNCP, and determines the position index of the first CIR peak value in the OFDM symbol of SYNCP; adjusts the timing point to the beginning position of the OFDM symbol of the preamble signal based on the position index of the first CIR peak value; receives at least four sets of second time-domain data, wherein the second time-domain data is time-domain data received starting from the beginning position of the OFDM symbol of the preamble signal; determines at least three second CIR peak values ​​based on the at least four sets of second time-domain data; in response to the latest three second CIR peak values ​​conforming to a V-shaped feature and satisfying a set polarity feature, determines the last set of second time-domain data as the second OFDM symbol of SYNCP. The above methods can improve the probability of frame signal detection and frame signal synchronization performance, while reducing the computational load. Attached Figure Description

[0069] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which:

[0070] Figure 1 This is a schematic diagram of a frame format in the prior art;

[0071] Figure 2 This is a schematic diagram of the structure of a leading symbol in the prior art;

[0072] Figure 3This is a schematic diagram of a frame signal detection and synchronization system based on a BPLC system in an embodiment of the present invention;

[0073] Figure 4 This is a flowchart of a frame signal detection and synchronization method based on a BPLC system according to an embodiment of the present invention;

[0074] Figure 5 This is a flowchart of a method for determining the first CIR peak value in an embodiment of the present invention;

[0075] Figure 6 This is a schematic diagram illustrating the calculation of a first CIR value in an embodiment of the present invention;

[0076] Figure 7 This is a flowchart of a method for determining the peak-to-average power ratio (CIR) in an embodiment of the present invention;

[0077] Figure 8 This is a flowchart of a method for determining a second CIR peak value in an embodiment of the present invention;

[0078] Figure 9 This is a flowchart of another method for frame signal detection and synchronization based on a BPLC system in an embodiment of the present invention;

[0079] Figure 10 This is a schematic diagram of a frame signal detection and synchronization device based on a BPLC system according to an embodiment of the present invention;

[0080] Figure 11 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0081] The present invention is described below based on embodiments, but the invention is not limited to these embodiments. In the detailed description of the invention below, certain specific details are described in detail. Those skilled in the art will fully understand the invention even without these details. To avoid obscuring the essence of the invention, well-known methods, processes, flows, elements, and circuits are not described in detail.

[0082] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.

[0083] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".

[0084] In the description disclosed in this invention, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description disclosed in this invention, unless otherwise stated, "a plurality of" means two or more.

[0085] In existing technologies, commonly used data transmission methods include Broadband Power Line Carrier (BPLC). BPLC utilizes existing power lines for data transmission, eliminating the need for rewiring, simplifying network setup, reducing costs, and broadening application scope, while also ensuring information security. Compared to traditional narrowband power line communication, BPLC operates on frequencies between 2MHz and 30MHz, with its physical layer based on Orthogonal Frequency Division Multiplexing (OFDM). Communication rates are typically above 1Mbps, with an average rate of around 10Mbps. It offers significant advantages in real-time performance and dynamic self-organizing networks. In smart grid meter reading, this translates to a 100% meter reading success rate, enabling real-time cost control, remote real-time payment, and transformer area line loss analysis. Based on the widely validated Transmission Control Protocol / Internet Protocol (TCP / IP) network technology, it provides robust data protection and verification at the link and network layers. In addition to application-layer data encryption, BPLC supports data encryption labeling at the link layer. High-strength encryption algorithms such as Standard (DES), Triple DES (3DES), and Advanced Encryption Standard (AES) ensure high data communication security. Due to these advantages, BPLC is widely used in smart grid meter reading systems, energy internet, smart homes, and industrial data acquisition.

[0086] In a BPLC communication network, the transmitter and receiver use the same frame format, which consists of three parts: a preamble, a frame control symbol (FC), and a payload symbol (PL), such as... Figure 1 As shown, the structure of the leading symbol is as follows: Figure 2As shown, the preamble consists of 10.5 repeated SYNCP symbols and 2.5 SYNCM symbols. The first 0.5 SYNCP symbols are the result of the latter half of a SYNCP being rolled down and windowed. The middle 10 SYNCP symbols are OFDM data, each OFDM data having a duration of 40.96 µs. The SYNCM symbols are obtained by inverting the bits of the SYNCP symbols. The last 0.5 SYNCM symbols are composed of the rolled-down and windowed data of the first half of the SYNCM symbols. The preamble is mainly used for frame signal detection, timing, sampling clock offset estimation, and channel estimation.

[0087] Most existing OFDM frame signal detection and synchronization methods are performed in the time domain, and can be broadly categorized into three types: Method 1, utilizing the time-delay autocorrelation characteristics between time-domain sampled signals for frame signal detection and synchronization; Method 2, utilizing the cross-correlation characteristics between time-domain sampled signals and local sample sequences for frame signal detection and synchronization; and Method 3, a combination of Method 1 and Method 2. Method 1 uses a recursive approach, resulting in lower computational complexity, but it is highly sensitive to narrowband interference, such as single-frequency sine waves, requiring complex filtering circuits and impacting frame synchronization performance. Method 2 offers slightly better resistance to noise and narrowband interference, but the computational, storage, and power consumption are very high because a cross-correlation operation needs to be performed again for each updated sample point, making it difficult to implement in broadband high-speed communication applications. Method 3 also struggles to simultaneously meet performance and computational requirements. Therefore, how to improve the probability of frame signal detection and frame signal synchronization performance while reducing computational complexity is a problem that needs to be solved.

[0088] In this embodiment of the invention, to solve the above problems, frame signal detection and synchronization need to be performed in the receiver. The specific structure diagram is as follows. Figure 3 As shown, the system includes a SYNCP detection unit 301, a timing adjustment unit 302, and a SYNCM detection unit 303. The SYNCP detection unit detects whether the SYNCP symbol in the preamble signal has arrived. Upon successful detection of the SYNCP symbol, the system proceeds to the timing adjustment unit 302, which adjusts the timing of the received signal to the beginning of the OFDM symbol in the preamble signal. After timing adjustment, the system proceeds to the SYNCM detection unit, which detects whether the SYNCM symbol in the preamble signal has arrived. As described above, since the preamble symbol includes both a SYNCP symbol and a SYNCM symbol, frame signal detection mainly involves two processes: determining the SYNCP symbol and determining the appearance of the SYNCM symbol. Timing adjustment, performed after determining the SYNCP symbol and before determining the SYNCM symbol, can also be called timing synchronization.

[0089] The present invention will be described in detail below through a complete embodiment, specifically proposing a method for frame signal detection and synchronization based on a BPLC system, as follows: Figure 4 As shown, Figure 4 This is a schematic diagram of a frame signal detection and synchronization method based on a BPLC system according to an embodiment of the present invention. Specifically, it includes:

[0090] Step S400: Receive at least two sets of first time domain data.

[0091] Specifically, each group of first time-domain data includes Nfft time-domain signals, where the value of Nfft can be 1024 or 2048, or other values, depending on the sampling rate. In this embodiment of the invention, each reception of a group of Nfft time-domain signals represents the reception of one OFDM symbol.

[0092] Step S401: Determine the peak value of the first channel impulse response (CIR) based on the at least two sets of first time-domain data.

[0093] In one possible implementation, for each set of first time-domain data received, i.e., for each set of Nfft time-domain signals received, a Fast Fourier Transform (FFT) is performed on the set of first time-domain data to generate first frequency-domain data, wherein the first frequency-domain data includes frequency-domain data at the Nfft points; and a first CIR peak is determined based on at least two sets of the first frequency-domain data.

[0094] In this embodiment of the invention, determining the first CIR peak value based on at least two sets of the first frequency domain data is specifically as follows: Figure 5 As shown, it includes the following steps:

[0095] Step S500: Merge the at least two sets of the first frequency domain data to generate the first merged frequency domain data.

[0096] Specifically, multiple sets of the first frequency domain data are merged, that is, the first frequency domain data obtained by multiple FFT operations are merged. The number of merged sets can be represented by NUM_CP_CMB, which is set to a number of symbols less than SYNCP. Preferably, NUM_CP_CMB = 8. When NUM_CP_CMB = 8, 8 sets of the first frequency domain data are merged.

[0097] In this embodiment of the invention, it is assumed that each group of first frequency domain data includes 1024 frequency domain data, and the indices of the 1024 frequency domain data are index 0, index 1, index 2, index 3... index 1023. When the 8 groups of first frequency domain data are merged, that is, the frequency domain data at index 0 are merged proportionally, the frequency domain data at index 1 are merged proportionally, the frequency domain data at index 2 are merged proportionally, the frequency domain data at index 3 are merged proportionally... the frequency domain data at index 1023 are merged proportionally. The first merged frequency domain data generated after merging is represented as CP_CMB_FREQ, and the first merged frequency domain data includes 1024 frequency domain data.

[0098] In one possible implementation, if each group of first frequency domain data includes 2048 frequency domain data, the processing method is the same as when it includes 1024 frequency domain data. The generated first merged frequency domain data includes 2048 frequency domain data. Other values ​​are not elaborated and are determined according to the actual situation.

[0099] Step S501: Perform conjugate multiplication of the first merged frequency domain data and the local frequency domain data of the preamble symbol to obtain the first product.

[0100] Specifically, the first merged frequency domain data, represented as CP_CMB_FREQ, is multiplied by the conjugate of the local frequency domain data of the preamble symbol. The local frequency domain data of the preamble symbol is the data specified in the protocol, and can be denoted as PRMB_LOC_FREQ. For example... Figure 6The frequency domain data indexed at the same position in CP_CMB_FREQ and PRMB_LOC_FREQ are multiplied point-to-point by conjugate to obtain the first product, which can be represented as CP_CMB_MULP. For example, CP_CMB_FREQ includes 1024 frequency domain data, and the indices of the 1024 frequency domain data are index (1)0, index (1)1, index (1)2, index (1)3...index (1)1023, respectively. PRMB_LOC_FREQ includes 1024 frequency domain data, and the indices of the 1024 frequency domain data are index (2)0, index (2)1, index (2)2, index (2)3, respectively. ...Index (2) 1023, the frequency domain data at index (1) 0 is multiplied by the conjugate of the frequency domain data at index (2) 0 to generate the frequency domain data at index (3) 0 of the first product CP_CMB_MULP; the frequency domain data at index (1) 1 is multiplied by the conjugate of the frequency domain data at index (2) 1 to generate the frequency domain data at index (3) 1 of the first product CP_CMB_MULP; and so on, the frequency domain data at index (1) 1023 is multiplied by the conjugate of the frequency domain data at index (2) 1023 to generate the frequency domain data at index (3) 1023 of the first product CP_CMB_MULP.

[0101] In one possible implementation, when the Band number of the frame signal (i.e., the first time-domain data) is known, PRMB_LOC_FREQ takes the frequency domain data of the subcarrier corresponding to the Band number, and all other subcarriers are set to 0; for example, BAND0 occupies 411 points, and all other points in the 1024 points are set to 0 except for the 411 points. When the Band number of the frame signal is unknown, all subcarrier frequency domain data corresponding to each Band number are selected, and all other subcarriers are set to 0; for example, BAND0 occupies 411 points, and all other points in the 1024 points are set to 0 except for the 411 points. The 411 points of BAND0 have indices from 80 to 490; the 131 points of band1 have indices from 100 to 230, occupying duplicates, and all other points in the 1024 points are set to 0 except for the occupied points.

[0102] Step S502: Perform an inverse fast fourier transform (IFFT) on the first product to generate a set number of first CIR values.

[0103] Specifically, perform an IFFT operation on the first product CP_CMB_MULP, such as... Figure 6As shown, the first CIR value is obtained, denoted as CP_CMB_CIR. If the first product includes 1024 points, then 1024 first CIR values ​​are generated based on the first product; if the first product includes 2048 points, then 2048 first CIR values ​​are generated based on the first product. The specific value is determined according to the actual situation, and this embodiment of the invention does not limit it.

[0104] Step S503: Determine the maximum value among the set number of first CIR values ​​as the first CIR peak value.

[0105] Specifically, 1024 first CIR values ​​are generated based on the first product, or 2048 first CIR values ​​are generated based on the first product. The specific values ​​are determined according to the actual situation, and the embodiments of the present invention do not limit them.

[0106] Step S402: Determine the CIR peak-to-average power ratio based on the first CIR peak value.

[0107] Specifically, the flowchart for determining the CIR peak-to-average power ratio based on the first CIR peak value is as follows: Figure 7 As shown, it includes the following steps:

[0108] Step S700: Determine the first CIR modulus value of the set quantity based on the first CIR value of the set quantity.

[0109] Specifically, assuming there are 1024 first CIR values, i.e., 1024 CP_CMB_CIR values, we determine 1024 first CIR modulus values, denoted as CP_CMB_CIR_ABS; we obtain the maximum value CP_CIR_MAXV and the position index CP_CIR_MAXV_IDX of the modulus value sequence of the 1024 first CIR modulus values; assuming that the modulus value at index 3 in the modulus value sequence of the 1024 first CIR modulus values ​​is the maximum value in the modulus value sequence, this is only an example and the specific value should be determined according to the actual situation.

[0110] Step S701: Determine the first mean value based on the set number of first CIR modulus values.

[0111] Specifically, the sum of the first CIR modulus values ​​of the set number is determined, and the ratio of the sum to the set number is determined as the first mean, denoted as CP_CMB_CIR_AVG.

[0112] For example, the sum of 1024 first CIR modulus values ​​CP_CMB_CIR_ABS is determined, and the ratio of the sum to the 1024 is determined as the first mean.

[0113] In one possible implementation, after removing one peak value from the 1024 first CIR modulus values, the sum of the remaining 1023 first CIR modulus values ​​is calculated, and the ratio of the sum to 1023 is determined as the first mean; or, the largest few modulus values ​​are removed from the 1024 first CIR modulus values, for example, the four largest values ​​in the sorting are removed, the sum of the remaining 1020 first CIR modulus values ​​is calculated, and the ratio of the sum to 1020 is determined as the first mean.

[0114] Step S702: Determine the ratio of the first CIR peak value to the first mean value as the CIR peak-to-mean ratio.

[0115] Specifically, the peak-to-average power ratio (CIR) is expressed as CP_CIR_MAXV / CP_CMB_CIR_AVG.

[0116] Step S403: In response to the CIR peak-to-average power ratio being greater than a set threshold, determine that the last set of the first time-domain data in the at least two sets of first time-domain data is an Orthogonal Frequency Division Multiplexing (OFDM) symbol of SYNCP, and determine the position index of the first CIR peak value in the OFDM symbol of SYNCP.

[0117] Specifically, assuming the set threshold is represented as CP_CIR_P2A_THR, when the CIR peak-to-average power ratio is greater than CP_CIR_P2A_THR, it is determined that the SYNCP detection is successful, that is, the received first time-domain data is determined to be the OFDM symbol of SYNCP.

[0118] In one possible implementation, while determining that the peak-to-average power ratio (CIR) is greater than the CP_CIR_P2A_THR, it is also determined whether the CP_CIR_MAXV is greater than a set threshold CP_CIR_MAXV_THR for the maximum value CP_CIR_MAXV. If the CP_CIR_MAXV is greater than the set threshold CP_CIR_MAXV_THR for the maximum value CP_CIR_MAXV, the SYNCP detection is determined to be successful, that is, the received first time-domain data is determined to be an OFDM symbol of SYNCP.

[0119] In one possible implementation, if the SYNCP detection fails, time-domain data continues to be received, and the above process is repeated to perform SYNCP detection.

[0120] In this embodiment of the invention, during the SYNCP detection process, the time-domain signal is estimated and adjusted in real time using Automatic Gain Control (AGC) to generate the first time-domain data.

[0121] Step S404: Adjust the timing point to the head position of the OFDM symbol of the preamble signal according to the position index of the first CIR peak.

[0122] Specifically, after the SYNCP detection is successful, timing adjustment is initiated. Based on the position index CP_CIR_MAXV_IDX of the first CIR peak, the timing point for receiving time-domain data is adjusted to the beginning position of the next OFDM symbol. After adjusting the timing point to the beginning position of the OFDM symbol of the preamble signal based on the position index of the first CIR peak, the method further includes: after determining the last OFDM symbol of the position index of the first CIR peak, waiting for the position index CP_CIR_MAXV_IDX time-domain signal points before receiving time-domain data. The received time-domain data is the second time-domain data.

[0123] In one possible implementation, AGC estimation and adjustment of the time-domain signal is stopped after the timing point is adjusted to the head position of the OFDM symbol of the preamble.

[0124] Step S405: Receive at least four sets of second time-domain data, wherein the second time-domain data is the time-domain data received starting from the head position of the OFDM symbol of the preamble signal.

[0125] Specifically, each group of second time-domain data includes Nfft time-domain signals, where the value of Nfft can be 1024 or 2048, or other values, depending on the sampling rate. In this embodiment of the invention, each reception of a group of Nfft time-domain signals represents the reception of one OFDM symbol.

[0126] In this embodiment of the invention, since at least three CIR peaks are required to test SYNCM, and two sets of time-domain data are required to calculate each CIR peak, at least four sets of second time-domain data are required to test SYNCM.

[0127] In one possible implementation, the second time-domain data received after the timing adjustment may be the 6th or 7th symbol in SYNCP, depending on the actual situation. This is just an example. Therefore, it may be necessary to receive more than four sets of the second time-domain data to achieve SYNCM verification.

[0128] Step S406: Determine at least three second CIR peaks based on the at least four sets of second time-domain data.

[0129] Specifically, a second CIR peak is determined by merging two adjacent sets of the second time-domain data; the second time-domain data is updated to obtain the latest three second CIR peaks.

[0130] In one possible implementation, if each group of first frequency domain data includes 2048 frequency domain data, the processing method is the same as when it includes 1024 frequency domain data. The generated first merged frequency domain data includes 2048 frequency domain data. Other values ​​are not elaborated and are determined according to the actual situation.

[0131] In this embodiment of the invention, the step of determining a second CIR peak value by merging two adjacent groups of the second time-domain data is specifically as follows: Figure 8 As shown, it includes the following steps:

[0132] Step S800: Merge the two sets of second frequency domain data to generate second merged frequency domain data.

[0133] Specifically, the two sets of second frequency domain data are merged, that is, the second frequency domain data obtained by merging two FFT operations are merged.

[0134] Assume that each group of second frequency domain data includes 1024 frequency domain data, and the indices of the 1024 frequency domain data are index 0, index 1, index 2, index 3... index 1023. When two groups of second frequency domain data are merged, that is, the frequency domain data at index 0 are merged proportionally, the frequency domain data at index 1 are merged proportionally, the frequency domain data at index 2 are merged proportionally, the frequency domain data at index 3 are merged proportionally... the frequency domain data at index 1023 are merged proportionally, and the resulting second merged frequency domain data is represented as CM_CMB_FREQ. The second merged frequency domain data includes 1024 frequency domain data.

[0135] In one possible implementation, if each group of second frequency domain data includes 2048 frequency domain data, the processing method is the same as when it includes 1024 frequency domain data. The generated second merged frequency domain data includes 2048 frequency domain data. Other values ​​are not elaborated and are determined according to the actual situation.

[0136] Step S801: Perform conjugate multiplication of the second merged frequency domain data and the local frequency domain data of the preamble symbol to obtain the second product.

[0137] Specifically, the second merged frequency domain data, represented as CM_CMB_FREQ, is multiplied by the conjugate of the local frequency domain data of the preamble symbol. The local frequency domain data of the preamble symbol is the data specified in the protocol, and can be denoted as PRMB_LOC_FREQ. The frequency domain data of CM_CMB_FREQ and PRMB_LOC_FREQ at the same index are multiplied point-to-point by conjugate to obtain the second product, which can be represented as CM_CMB_MULP. For example, CM_CMB_FREQ includes 1024 frequency domain data points, with indices of index (4)0, index (4)1, index (4)2, index (4)3…index (4)1023. PRMB_LOC_FREQ includes 102… Four frequency domain data are used. The indices of the 1024 frequency domain data are index (5)0, index (5)1, index (5)2, index (5)3... index (5)1023. The frequency domain data at index (4)0 is multiplied by the conjugate of the frequency domain data at index (5)0 to generate the frequency domain data at index (6)0 of the second product CM_CMB_MULP. The frequency domain data at index (4)1 is multiplied by the conjugate of the frequency domain data at index (5)1 to generate the frequency domain data at index (6)1 of the second product CM_CMB_MULP. Similarly, the frequency domain data at index (4)1023 is multiplied by the conjugate of the frequency domain data at index (5)1023 to generate the frequency domain data at index (6)1023 of the second product CM_CMB_MULP.

[0138] In one possible implementation, when the Band number of the frame signal (i.e., the first time-domain data) is known, PRMB_LOC_FREQ takes the frequency domain data of the subcarrier corresponding to the Band number, and all other subcarriers are set to 0; for example, BAND0 occupies 411 points, and all other points in the 1024 points are set to 0 except for the 411 points. When the Band number of the frame signal is unknown, all subcarrier frequency domain data corresponding to each Band number are selected, and all other subcarriers are set to 0; for example, BAND0 occupies 411 points, and all other points in the 1024 points are set to 0 except for the 411 points. The 411 points of BAND0 have indices from 80 to 490; the 131 points of band1 have indices from 100 to 230, occupying duplicates, and all other points in the 1024 points are set to 0 except for the occupied points.

[0139] Step S802: Perform an inverse fast fourier transform (IFFT) on the second product to generate a set number of second CIR values.

[0140] Specifically, an IFFT operation is performed on the second product CM_CMB_MULP to obtain a second CIR value, denoted as CM_CMB_CIR. Assuming that the second product contains 1024 points, then 1024 second CIR values ​​are generated based on the second product; if the second product contains 2048 points, then 2048 second CIR values ​​are generated based on the second product. The specific value is determined according to the actual situation, and this embodiment of the invention does not limit it.

[0141] Step S803: Determine the maximum value among the set number of second CIR values ​​as the second CIR peak value.

[0142] Specifically, 1024 second CIR values ​​are generated based on the second product, or 2048 second CIR values ​​are generated based on the second product. The specific values ​​are determined according to the actual situation, and the embodiments of the present invention do not limit them.

[0143] In this embodiment of the invention, the modulus value CM_CMB_CIR_ABS of the CM_CMB_CIR is calculated, and the maximum value is found in the sequence of 1024 modulus values ​​as the second CIR peak value, denoted as CM_CIR_MAXV. The sign polarity of the M CIR values ​​around index 0 of the CM_CMB_CIR is recorded and denoted as CM_CIR_SIGN[2M+1].

[0144] In one possible implementation, where M = 3, the second CIR peak value CM_CIR_MAXV is the peak value among the M values ​​to the left and right of index 0 of CM_CMB_CIR_ABS, that is, the second CIR peak value is the peak value among the M values ​​to the left and right of index 0 of CM_CMB_CIR_ABS.

[0145] In this embodiment of the invention, the second time-domain data is updated, and a second CIR peak value is obtained for every two groups, for a total of three latest second CIR peak values. The three latest CIR peak values ​​are denoted as CM_CIR_MAXV1, CM_CIR_MAXV2 and CM_CIR_MAXV3, respectively. The polarity array corresponding to CM_CIR_MAXV1 is CM_CIR_SIGN1[2M+1], the polarity array corresponding to CM_CIR_MAXV2 is CM_CIR_SIGN2[2M+1], and the polarity array corresponding to CM_CIR_MAXV3 is CM_CIR_SIGN3[2M+1].

[0146] In one possible implementation, when the real part of the second CIR value is positive, its corresponding polarity decision is +1; otherwise, its corresponding polarity decision is -1.

[0147] Step S407: In response to the latest three second CIR peak values ​​conforming to the V-shaped feature and satisfying the set polarity feature, determine that the last group of second time domain data is the second OFDM symbol of SYNCM.

[0148] Specifically, step S407 is expanded, and the specific flowchart is as follows: Figure 9 As shown, it includes the following steps:

[0149] Step S900: In response to the latest three second CIR peaks conforming to the V-shaped feature, obtain the position index and first polarity of the maximum value of the first CIR combined value.

[0150] Specifically, after obtaining three second CIR peaks, a V-shaped decision is performed to determine whether the three second CIR peaks conform to the V-shaped feature. If the three second CIR peaks conform to the V-shaped feature, processing continues. If the three second CIR peaks do not conform to the V-shaped feature, new time-domain data is received, FFT operation is performed, and new second CIR peaks are generated. Each time a V-shaped decision is performed, the latest three second CIR peaks are used.

[0151] For example, the latest three second CIR peaks are CM_CIR_MAXV1, CM_CIR_MAXV2, and CM_CIR_MAXV3. It is determined whether CM_CIR_MAXV1, CM_CIR_MAXV2, and CM_CIR_MAXV3 satisfy the V-shaped feature. If CM_CIR_MAXV1>CM_CIR_MAXV2 and CM_CIR_MAXV3>CM_CIR_MAXV2, then it is determined that CM_CIR_MAXV1, CM_CIR_MAXV2, and CM_CIR_MAXV3 satisfy the V-shaped feature.

[0152] In one possible implementation, the location index and first polarity of obtaining the maximum value of the first CIR merged value are specifically as follows: When the CYNCP detection is successful, the first CIR value (CP_CMB_CIR) is obtained and stored in a set location. The first CIR merged value is calculated by smoothing the CP_CMB_CIR and the second CIR value (CM_CMB_CIR). The first CIR merged value generated after smoothing is stored in the set location where the CP_CMB_CIR is stored, that is, the CP_CMB_CIR at the set location is updated, and so on. The first CIR merged value = CP_CMB_CIR * Factor + CM_CMB_CIR * (1 - Factor), where Factor is a value less than 1 and greater than 0. Preferably, Factor = 3 / 4 is set. Factor can also be set to other values, which are not limited in this invention.

[0153] In this embodiment of the invention, the modulus CP_CMB_CIR_ABS of the first CIR merged value is calculated, and the maximum value index corresponding to the maximum value among multiple values ​​in the range of index 0 and M values ​​to the left and right of index 0 is determined, denoted as MaxV_Idx, and the polarity MaxV_Sign corresponding to the maximum value index is determined.

[0154] In one possible implementation, the maximum value index and polarity of the latest three first CIR merged values ​​are obtained, the maximum value index being denoted as MaxV_Idx1, MaxV_Idx2, and MaxV_Idx3, respectively, and the polarity being denoted as MaxV_Sign1, MaxV_Sign2, and MaxV_Sign3, respectively.

[0155] Step S901: Determine the second polarity of the position index of the maximum value corresponding to the first second CIR peak among the latest three second CIR peaks, and the third polarity of the position index of the maximum value corresponding to the third second CIR peak, based on the position index of the maximum value.

[0156] Specifically, when CM_CIR_MAXV1, CM_CIR_MAXV2, and CM_CIR_MAXV3 satisfy the V-shaped feature, the polarity values ​​of the maximum value index MaxV_Idx1 of the first CIR merged value in the polarity arrays CM_CIR_SIGN1[2M+1] and CM_CIR_SIGN3[2M+1] are obtained respectively, and are denoted as CM_SIGN1 = CM_CIR_SIGN1[MaxV_Idx1] and CM_SIGN3 = CM_CIR_SIGN3[MaxV_Idx3].

[0157] For example, assuming that the maximum value index MaxV_Idx1 of the first CIR merged value is index 2, then the polarity value of index 2 in the polarity arrays CM_CIR_SIGN1[2M+1] and CM_CI_SIGN3[2M+1] is obtained.

[0158] Step S902: In response to the first polarity being the same as the second polarity and the first polarity being opposite to the third polarity, determine that the last group of the second time-domain data is the second OFDM symbol of SYNCM.

[0159] Specifically, if MaxV_Sign1 = CM_Sign1 satisfies the same polarity direction feature, and MaxV_Sign1 = -CM_Sign3 satisfies the opposite polarity feature, then the SYNCM detection is determined to be successful. At this time, the last group of the second time-domain data is determined to be the second OFDM symbol of SYNCM; the penultimate group of the second time-domain data is determined to be the first OFDM symbol of SYNCM.

[0160] In one possible implementation, if MaxV_Sign1 = CM_Sign1 does not satisfy the same polarity characteristic, and or if MaxV_Sign1 = -CM_Sign3 does not satisfy the opposite polarity characteristic, then the SYNCM detection is deemed to have failed, and time-domain data continues to be received, FFT operations are performed, and the above processing method is repeated.

[0161] In this embodiment of the invention, the above method improves the probability of frame signal detection and the frame signal synchronization performance.

[0162] Figure 10 This is a schematic diagram of a frame signal detection and synchronization device based on a BPLC system according to an embodiment of the present invention. Figure 10 As shown, the device in this embodiment includes a first receiving unit 1001, a first determining unit 1002, a second determining unit 1003, an adjusting unit 1004, a second receiving unit 1005, a third determining unit 1006, and a fourth determining unit 1007.

[0163] The first receiving unit 1001 is configured to receive at least two sets of first time-domain data; the first determining unit 1002 is configured to determine a first channel impulse response (CIR) peak value based on the at least two sets of first time-domain data; the first determining unit 1002 is further configured to determine a CIR peak-to-average power ratio (PAPR) based on the first CIR peak value; the second determining unit 1003, in response to the CIR PAPR being greater than a set threshold, is configured to determine that the last set of first time-domain data in the at least two sets of first time-domain data is an Orthogonal Frequency Division Multiplexing (OFDM) symbol of SYNCP, and to determine the position index of the first CIR peak value in the OFDM symbol of SYNCP; the adjustment unit... Unit 1004 is used to adjust the timing point to the head position of the OFDM symbol of the preamble signal according to the position index of the first CIR peak; Unit 1005 is used to receive at least four sets of second time-domain data, wherein the second time-domain data is time-domain data received starting from the head position of the OFDM symbol of the preamble signal; Unit 1006 is used to determine at least three second CIR peaks according to the at least four sets of second time-domain data; Unit 1007 is used to determine the last set of second time-domain data as the second OFDM symbol of SYNCM in response to the latest three second CIR peaks conforming to V-shaped characteristics and satisfying set polarity characteristics.

[0164] Furthermore, the first determining unit is specifically used for:

[0165] The first time-domain data is subjected to a Fast Fourier Transform (FFT) to generate the first frequency-domain data;

[0166] The first CIR peak value is determined based on at least two sets of the first frequency domain data.

[0167] Furthermore, the first determining unit is specifically used for:

[0168] The at least two sets of the first frequency domain data are merged to generate the first merged frequency domain data;

[0169] The first merged frequency domain data is multiplied by the conjugate of the local frequency domain data of the preamble symbol to obtain the first product;

[0170] Perform an inverse fast Fourier transform (IFFT) on the first product to generate a set number of first CIR values;

[0171] The maximum value among the set number of first CIR values ​​is determined as the first CIR peak value.

[0172] Furthermore, the first determining unit is specifically used for:

[0173] The first CIR modulus value of the set quantity is determined based on the first CIR value of the set quantity;

[0174] The first mean value is determined based on the set number of first CIR modulus values;

[0175] The ratio of the first CIR peak value to the first mean value is determined as the CIR peak-to-mean ratio.

[0176] Furthermore, the second receiving unit is also used for:

[0177] After waiting for the location index to reach a certain number of time-domain signal points, time-domain data is received, and the received time-domain data is the second time-domain data.

[0178] Furthermore, the third determining unit is specifically used for:

[0179] A second CIR peak value is determined by merging two adjacent groups of the second time domain data;

[0180] The second time-domain data is updated to obtain the latest three second CIR peak values.

[0181] Furthermore, the fourth determining unit is specifically used for:

[0182] In response to the latest three second CIR peaks conforming to a V-shaped feature, the location index and first polarity of the maximum value of the first CIR combined value are obtained;

[0183] The second polarity of the position index of the maximum value corresponding to the first second CIR peak in the latest three second CIR peaks and the third polarity of the position index of the maximum value corresponding to the third second CIR peak are determined based on the position index of the maximum value.

[0184] In response to the first polarity being the same as the second polarity and the first polarity being opposite to the third polarity, the last group of the second time-domain data is determined to be the second OFDM symbol of SYNCM.

[0185] Figure 11 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Figure 11The illustrated electronic device is a frame signal detection and synchronization apparatus, comprising a general computer hardware architecture, including at least a processor 1101 and a memory 1102. The processor 1101 and memory 1102 are connected via a bus 1103. The memory 1102 is adapted to store instructions or programs executable by the processor 1101. The processor 1101 can be a standalone microprocessor or a collection of one or more microprocessors. Thus, the processor 1101 executes the instructions stored in the memory 1102, thereby performing the method flow of the embodiments of the present invention as described above to process data and control other devices. The bus 1103 connects the aforementioned components together, and also connects these components to a display controller 1104, a display device, and an input / output (I / O) device 1105. The input / output (I / O) device 1105 can be a mouse, keyboard, modem, network interface, touch input device, motion-sensing input device, printer, and other devices known in the art. Typically, the input / output device 1105 is connected to the system via an input / output (I / O) controller 1106.

[0186] As those skilled in the art will recognize, various aspects of the embodiments of the present invention can be implemented as a system, method, or computer program product. Therefore, various aspects of the embodiments of the present invention can take the form of a completely hardware implementation, a completely software implementation (including firmware, resident software, microcode, etc.), or an implementation combining software and hardware aspects, which may generally be referred to herein as a "circuit," "module," or "system." Furthermore, various aspects of the embodiments of the present invention can take the form of a computer program product implemented in one or more computer-readable media having computer-readable program code implemented thereon.

[0187] Any combination of one or more computer-readable media can be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, (but not limited to) an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or apparatus, or any suitable combination thereof. More specific examples (not an exhaustive list) of computer-readable storage media will include: an electrical connection having one or more wires, a portable computer floppy disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable optical disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the context of embodiments of the present invention, a computer-readable storage medium can be any tangible medium capable of containing or storing a program used by or in conjunction with an instruction execution system, device, or apparatus.

[0188] Computer-readable signal media may include propagated data signals having computer-readable program code implemented therein, such as in baseband or as part of a carrier wave. Such propagated signals may take any of a variety of forms, including, but not limited to, electromagnetic, optical, or any suitable combination thereof. A computer-readable signal medium may be any computer-readable medium that is not a computer-readable storage medium and can communicate, propagate, or transmit a program used by or in conjunction with an instruction execution system, device, or apparatus.

[0189] Program code implemented on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, fiber optic cable, RF, or any suitable combination thereof.

[0190] Computer program code for performing operations relating to various aspects of embodiments of the present invention can be written in any combination of one or more programming languages, including: object-oriented programming languages ​​such as Java, Smalltalk, C++, etc.; and conventional procedural programming languages ​​such as the "C" programming language or similar programming languages. The program code can be executed as a standalone software package entirely on the user's computer, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet provided by an Internet service provider).

[0191] The flowchart illustrations and / or block diagrams of the methods, apparatus (systems), and computer program products according to embodiments of the present invention describe various aspects of the embodiments of the present invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus to produce a machine such that the instructions (executed via the processor of the computer or other programmable data processing apparatus) create means for implementing the functions / actions specified in the flowchart and / or block diagram blocks or blocks.

[0192] These computer program instructions may also be stored in a computer-readable medium that can direct a computer, other programmable data processing apparatus or other means to operate in a particular manner, such that the instructions stored in the computer-readable medium produce an article of writing that includes instructions that implement the functions / actions specified in flowchart and / or block diagram blocks or blocks.

[0193] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus or other device to cause a series of operable steps to be performed on the computer, other programmable apparatus or other device to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide for implementing the functions / actions specified in flowchart and / or block diagram blocks or blocks.

[0194] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. For those skilled in the art, the present invention can be modified and varied in various ways. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for frame signal detection and synchronization based on a BPLC system, characterized in that, The method includes: Receive at least two sets of first time-domain data; The peak value of the first channel impulse response is determined based on the at least two sets of first time-domain data. The peak-to-average power ratio of the channel impulse response is determined based on the peak value of the first channel impulse response. In response to the channel impulse response peak-to-average power ratio being greater than a set threshold, the last set of the first time-domain data in the at least two sets of first time-domain data is determined to be an orthogonal frequency division multiplexing (OFDM) symbol of SYNCP, and the position index of the first channel impulse response peak value in the OFDM symbol of SYNCP is determined. The timing point is adjusted to the beginning position of the orthogonal frequency division multiplexing symbol of the preamble signal based on the position index of the peak value of the first channel impulse response. Receive at least four sets of second time-domain data, wherein the second time-domain data is the time-domain data received after waiting for the last orthogonal frequency division multiplexing symbol of the location index of the first channel impulse response peak after determining the location index time-domain signal point; At least three second channel impulse response peaks are determined based on the at least four sets of second time-domain data; In response to the latest three second channel impulse response peaks conforming to V-shaped characteristics and satisfying the set polarity characteristics, the last group of second time-domain data is determined to be the second orthogonal frequency division multiplexing (OFDM) symbol of SYNCM. The step of determining at least three second channel impulse response peaks based on the at least four sets of second time domain data includes: determining a second channel impulse response peak after merging two adjacent sets of second time domain data, updating the second time domain data, and obtaining the latest three second channel impulse response peaks; The step of determining the last group of second time-domain data as the second orthogonal frequency division multiplexing (OFDM) symbol in response to the latest three second channel impulse response peaks conforming to a V-shaped feature and satisfying a set polarity feature includes: obtaining the position index and first polarity of the maximum value of the first channel impulse response combined value in response to the latest three second channel impulse response peaks conforming to a V-shaped feature; determining the second polarity of the position index of the maximum value corresponding to the first second channel impulse response peak and the third polarity of the position index of the maximum value corresponding to the third second channel impulse response peak in response to the position index of the maximum value; and determining the last group of second time-domain data as the second orthogonal frequency division multiplexing (OFDM) symbol in response to the first polarity being the same as the second polarity and the first polarity being opposite to the third polarity.

2. The method as described in claim 1, characterized in that, Determining the first channel impulse response peak value based on the at least two sets of first time-domain data specifically includes: The first time-domain data is subjected to a fast Fourier transform to generate the first frequency-domain data; The peak value of the first channel impulse response is determined based on at least two sets of the first frequency domain data.

3. The method as described in claim 2, characterized in that, Determining the peak value of the first channel impulse response based on at least two sets of the first frequency domain data specifically includes: The at least two sets of the first frequency domain data are merged to generate the first merged frequency domain data; The first merged frequency domain data is multiplied by the conjugate of the local frequency domain data of the preamble signal to obtain the first product; Perform an inverse fast Fourier transform on the first product to generate a set number of first channel impulse response values; The maximum value among the set number of first channel impulse response values ​​is determined as the first channel impulse response peak value.

4. The method as described in claim 3, characterized in that, The step of determining the peak-to-average power ratio (PAPR) of the channel impulse response based on the first channel impulse response peak value specifically includes: The predetermined number of first channel impulse response modulus values ​​are determined based on the predetermined number of first channel impulse response values; The first mean value is determined based on the set number of first channel impulse response moduli; The ratio of the peak value of the first channel impulse response to the first mean value is determined as the channel impulse response peak-to-mean ratio.

5. A device for frame signal detection and synchronization based on a BPLC system, characterized in that, The device includes: The first receiving unit is used to receive at least two sets of first time-domain data; The first determining unit is configured to determine the first channel impulse response peak value based on the at least two sets of first time-domain data. The first determining unit is further configured to determine the channel impulse response peak-to-average power ratio (PAPR) based on the first channel impulse response peak value; The second determining unit, in response to the channel impulse response peak-to-average power ratio being greater than a set threshold, is used to determine that the last set of the first time-domain data in the at least two sets of first time-domain data is an orthogonal frequency division multiplexing (OFDM) symbol of SYNCP, and to determine the position index of the first channel impulse response peak value in the OFDM symbol of SYNCP. The adjustment unit is used to adjust the timing point to the head position of the orthogonal frequency division multiplexing symbol of the preamble signal according to the position index of the peak value of the first channel impulse response; The second receiving unit is configured to receive at least four sets of second time-domain data, wherein the second time-domain data is time-domain data received after waiting for the last orthogonal frequency division multiplexing symbol of the location index of the first channel impulse response peak value. The third determining unit is used to determine at least three second channel impulse response peaks based on the at least four sets of second time-domain data. The fourth determining unit, in response to the latest three second channel impulse response peak values ​​conforming to V-shaped characteristics and satisfying the set polarity characteristics, is used to determine that the last group of the second time domain data is the second orthogonal frequency division multiplexing (OFDM) symbol of SYNCM. The third determining unit is further configured to: determine a second channel impulse response peak value by merging two adjacent groups of the second time domain data, update the second time domain data, and obtain the latest three second channel impulse response peak values; The fourth determining unit is further configured to: in response to the latest three second channel impulse response peaks conforming to a V-shaped feature, obtain the position index and first polarity of the maximum value of the first channel impulse response combined value; determine the second polarity of the position index of the maximum value corresponding to the first second channel impulse response peak among the latest three second channel impulse response peaks, and the third polarity of the position index of the maximum value corresponding to the third second channel impulse response peak, based on the position index of the maximum value; and in response to the first polarity being the same as the second polarity and the first polarity being opposite to the third polarity, determine that the last group of second time-domain data is the second orthogonal frequency division multiplexing (OFDM) symbol of SYNCM.

6. An electronic device comprising a memory and a processor, characterized in that, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method as described in any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the method as described in any one of claims 1-4.