CN-122001733-A - Synchronization method and system for power line carrier communication and electronic equipment
Abstract
The application provides a synchronization method, a system and electronic equipment for power line carrier communication, wherein the method comprises the steps of obtaining signal data of a sender in the power line carrier communication, processing the signal data to obtain a plurality of data frames, inserting a preamble sequence into a starting position of one data frame to generate a marked data frame, obtaining a local sequence of the sender, carrying out convolution calculation on the marked data frame and the local sequence to obtain a convolution value, judging whether the convolution value exceeds a preset threshold value, if so, determining that the position exceeding the threshold value is a peak position, intercepting a marked data segment according to the peak position, carrying out autocorrelation calculation on the marked data segment to determine the starting position of the data frame, and enabling a receiver to start receiving the data frame from the starting position of each data frame. The problem of insufficient high-precision synchronous rate in power line carrier communication is solved.
Inventors
- YAN BIN
- HUANG CHAO
- Song Jigao
- ZHANG LIN
- LIU JUNYU
- DUAN LIJUN
- XUE WEIDONG
- LI GANG
Assignees
- 北京中电飞华通信有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260206
Claims (10)
- 1. The synchronization method for the power line carrier communication is characterized by comprising the following steps of: Acquiring signal data of a sender in power line carrier communication, and processing the signal data to obtain a plurality of data frames; Inserting a preamble sequence at a starting position in one data frame to generate a marked data frame; The local sequence of the sender is obtained, and convolution calculation is carried out on the marked data frame and the local sequence to obtain a convolution value; Judging whether the convolution value exceeds a preset threshold value, if so, determining the position exceeding the threshold value as a peak value position; intercepting a marked data segment according to the peak position, and performing autocorrelation calculation on the marked data segment to determine the starting position of a data frame; and enabling a receiver to receive the data frames from the starting position of each data frame.
- 2. The synchronization method for power line carrier communication according to claim 1, wherein the inserting a preamble sequence at a start position in one of the data frames generates a marked data frame, comprising: inserting a preamble sequence at a starting position in the data frame, wherein the preamble sequence comprises two orthogonal frequency division multiplexing symbols; Generating a constant amplitude zero auto-correlation sequence according to the following formula: ; Wherein c (k) is the constant amplitude zero auto-correlation sequence, N is the length of the constant amplitude zero auto-correlation sequence, k is the discrete index of the constant amplitude zero auto-correlation sequence, exp (j) is a complex exponential function; The same constant amplitude zero auto-correlation sequence is placed in both of the orthogonal frequency division multiplexing symbols.
- 3. The synchronization method for power line carrier communication according to claim 2, wherein the convolving the tag data frame with the local sequence comprises: Setting a search window, wherein the length of the search window is the same as the length of the constant amplitude zero autocorrelation sequence; sliding the search window multiple times over the marked data frame; performing convolution calculation on the data segment intercepted by each sliding of the search window and the local sequence; after the determining whether the convolution value exceeds the preset threshold value, the method further comprises: If not, the search window slides again, and the convolution calculation is carried out on the data segment and the local sequence to obtain the new convolution value.
- 4. The synchronization method for power line carrier communication according to claim 3, wherein the convolving the tag data frame with the local sequence comprises: The convolution calculation is performed according to the following formula: ; ; ; ; wherein P (tXN+n) is a normalized cross-correlation value, N is the length of the constant amplitude zero auto-correlation sequence, r (& gt) is the data segment, c (& gt) is the local sequence, c (. Cndot.) is the complex conjugate of the constant amplitude zero auto-correlation sequence, t is the number of times the search window is slid, R (t N) is the amplitude of the marker data frame, and W (-) is the cross-correlation value.
- 5. The synchronization method for power line carrier communication according to claim 2, wherein the convolving the tag data frame with the local sequence comprises: processing the data segment by utilizing a Fourier transform technology, and converting the data segment into frequency domain data; multiplying the frequency domain data with the local sequence to obtain an intermediate value, converting the intermediate value into time domain data by using the Fourier transform technology, and taking the time domain data as the convolution value.
- 6. The synchronization method for power line carrier communication according to claim 3, wherein before determining whether the convolution value exceeds a preset threshold value, the method comprises: If the frame number of the current data frame in the signal data is 1, setting an initial threshold value; If the frame number of the current data frame in the signal data is greater than 1, acquiring a preset threshold value in the last data frame and the power of the peak value in the last data frame; judging whether the power is between a preset maximum threshold value and a preset minimum threshold value or not; If so, determining that the threshold value of the current data frame is the same as the threshold value of the last data frame; if not, the power of the peak value in the last data frame is reduced by a preset multiple to obtain the threshold value of the current data frame.
- 7. The synchronization method for power line carrier communication according to claim 2, wherein the intercepting the tag data segment according to the peak position comprises: intercepting two marked data segments according to the peak position, wherein the position of a first marked data segment is expressed as: p~p+N; the position of the second marker data segment is expressed as: p+N f ~p+N+N f ; Where p is the peak position, N is the length of the constant amplitude zero auto-correlation sequence, and N f is the length of the orthogonal frequency division multiplexing symbol.
- 8. The synchronization method for power line carrier communication according to claim 7, wherein the performing autocorrelation calculation on the marker data segment to determine a start position of a data frame comprises: calculating the starting position of the data frame according to the following formula: ; ; ; Wherein, the N CP is the length of the cyclic prefix, r (·) is the data segment, r (. Cndot.) is the complex conjugate of the data segment, R (p) is the amplitude of the peak position, And W (·) is a cross correlation value for a preset threshold value.
- 9. A synchronization system for power line carrier communication, the system comprising: The acquisition module is used for acquiring signal data of a sender in power line carrier communication and processing the signal data to obtain a plurality of data frames; The inserting module is used for inserting a preamble sequence at a starting position in one data frame to generate a marked data frame; the convolution calculation module is used for acquiring the local sequence of the sender, and carrying out convolution calculation on the marked data frame and the local sequence to obtain a convolution value; The judging module is used for judging whether the convolution value exceeds a preset threshold value, if so, determining the position exceeding the threshold value as the position of the peak value; The autocorrelation calculation module is used for intercepting a marked data segment according to the position of the peak value, and carrying out autocorrelation calculation on the marked data segment to determine the starting position of a data frame; And the receiving module enables a receiver to receive the data frames from the starting position of each data frame.
- 10. An electronic device is characterized by comprising a processor and a memory; the memory stores a computer program which, when executed by the processor, causes the processor to perform the steps of the synchronization method for power line carrier communication according to any one of claims 1 to 8.
Description
Synchronization method and system for power line carrier communication and electronic equipment Technical Field The present application relates to the field of communications technologies, and in particular, to a synchronization method, a system, and an electronic device for power line carrier communication. Background The power line carrier communication (PLC: power Line Communication) technology is a unique communication mode of a power system, and the PLC communication uses the existing power line resource as a carrier for high-frequency carrier signal transmission to transmit data signals, so that the power line carrier communication has the advantages of no wiring, simplicity, practicability and low cost. The real-time performance and reliability requirements of the distribution network protection control service on data transmission are high, and 2 protection devices which are mutually related are required to ensure time synchronization, wherein the time synchronization precision is less than 10 mu s. Synchronization technology is a key technology in a communication system, and has a great influence on the performance of the whole system. But with a large amount of distributed power sources connected to the power grid, the synchronous detection performance is greatly affected. The high-speed power line carrier communication technology based on the orthogonal frequency division multiplexing technology (OFDM: orthogonal Frequency Division Multiplexing) is very sensitive to timing synchronization errors, the system performance is reduced due to the small errors, the synchronization time is required to be acquired rapidly in microsecond level, and otherwise, the communication transmission rate is greatly reduced. Disclosure of Invention In view of the above, the present application aims to provide a synchronization method, a system and an electronic device for power line carrier communication, which solve the problem of insufficient high-precision synchronization rate in power line carrier communication. In order to achieve one of the above disclosed objects, the present application provides a synchronization method for power line carrier communication, the method comprising: Acquiring signal data of a sender in power line carrier communication, and processing the signal data to obtain a plurality of data frames; Inserting a preamble sequence at a starting position in one data frame to generate a marked data frame; The local sequence of the sender is obtained, and convolution calculation is carried out on the marked data frame and the local sequence to obtain a convolution value; Judging whether the convolution value exceeds a preset threshold value, if so, determining the position exceeding the threshold value as a peak value position; intercepting a marked data segment according to the peak position, and performing autocorrelation calculation on the marked data segment to determine the starting position of a data frame; and enabling a receiver to receive the data frames from the starting position of each data frame. As a further improvement of an embodiment of the present application, said inserting a preamble sequence at a start position in one of said data frames, generating a marked data frame, includes: inserting a preamble sequence at a starting position in the data frame, wherein the preamble sequence comprises two orthogonal frequency division multiplexing symbols; Generating a constant amplitude zero auto-correlation sequence according to the following formula: ; Wherein c (k) is the constant amplitude zero auto-correlation sequence, N is the length of the constant amplitude zero auto-correlation sequence, k is the discrete index of the constant amplitude zero auto-correlation sequence, exp (j) is a complex exponential function; The same constant amplitude zero auto-correlation sequence is placed in both of the orthogonal frequency division multiplexing symbols. As a further improvement of an embodiment of the present application, the convolving the tag data frame and the local sequence includes: Setting a search window, wherein the length of the search window is the same as the length of the constant amplitude zero autocorrelation sequence; sliding the search window multiple times over the marked data frame; performing convolution calculation on the data segment intercepted by each sliding of the search window and the local sequence; after the determining whether the convolution value exceeds the preset threshold value, the method further comprises: If not, the search window slides again, and the convolution calculation is carried out on the data segment and the local sequence to obtain the new convolution value. As a further improvement of an embodiment of the present application, the convolving the tag data frame and the local sequence includes: The convolution calculation is performed according to the following formula: ; ; ; ; wherein P (tXN+n) is a normalized cross-correlation value, N is