WO2021098612A1 - Signal synchronization method and apparatus, and computer storage medium - Google Patents

Signal synchronization method and apparatus, and computer storage medium Download PDF

Info

Publication number
WO2021098612A1
WO2021098612A1 PCT/CN2020/128840 CN2020128840W WO2021098612A1 WO 2021098612 A1 WO2021098612 A1 WO 2021098612A1 CN 2020128840 W CN2020128840 W CN 2020128840W WO 2021098612 A1 WO2021098612 A1 WO 2021098612A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
spread
preamble signal
processing
spectrum preamble
Prior art date
Application number
PCT/CN2020/128840
Other languages
French (fr)
Chinese (zh)
Inventor
张烨
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021098612A1 publication Critical patent/WO2021098612A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B1/707Spread spectrum techniques using direct sequence modulation
    • H04B1/7073Synchronisation aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/69Spread spectrum techniques
    • H04B2001/6912Spread spectrum techniques using chirp

Definitions

  • This application relates to the field of communication technology, and in particular to a signal synchronization method, device, and computer storage medium.
  • Chirp Spread Spectrum is a spread spectrum technology used in communication systems, and it can also be called wideband chirp modulation (Chirp Modulation).
  • CSS modulation the transmitted radio frequency pulse signal changes linearly in the frequency of its carrier frequency within one cycle. Because its frequency changes in a wider frequency band, correspondingly, the frequency band of the signal is also expanded, so it is called spread spectrum technology.
  • the CSS spread spectrum technology can greatly increase the carrier-to-noise ratio threshold of the receiver's demodulation, and the sensitivity of the receiver's demodulation can be improved again through the Hamming code.
  • the premise of demodulation by the receiver is to discover and identify the random access preamble of the transmitter and synchronize with it.
  • the preamble code is recognized as a fixed format, encoding and decoding cannot be performed, so that the receiver has high requirements on power consumption and time for the judgment and synchronization of the preamble code, and the too weak signal cannot be identified and synchronized in the preamble code. .
  • the embodiments of the present application propose a signal synchronization method, device, and computer storage medium, which can not only save power consumption and operation time, but also achieve time domain and frequency domain synchronization of the preamble code in the CSS spread spectrum signal.
  • an embodiment of the present application provides a signal synchronization method, which includes:
  • the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1;
  • the correlation window represents that each sequence in the spread spectrum preamble is subjected to the first correlation processing The corresponding sliding window;
  • the synchronization information of the spread-spectrum preamble signal is determined, and synchronization tracking of the spread-spectrum preamble signal is realized according to the synchronization information.
  • an embodiment of the present application provides a signal synchronization device, which includes a receiving unit, a processing unit, an inquiry unit, and a synchronization unit, wherein:
  • a receiving unit configured to receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
  • a processing unit configured to perform first correlation processing on each sequence in the spread-spectrum preamble signal with a local signal, and determine N first processing results corresponding to the spread-spectrum preamble signal;
  • the processing unit is further configured to perform second correlation processing on the two first processing results before and after among the N first processing results and the local signal, and determine a second processing result corresponding to the spread-spectrum preamble signal;
  • the query unit is configured to query the maximum value of the second processing result in a correlation window if the second processing result is greater than a preset threshold; wherein, the correlation window represents each sequence in the spread spectrum preamble The sliding window corresponding to the first relevant processing;
  • the synchronization unit is configured to determine synchronization information of the spread-spectrum preamble signal based on the maximum value, and implement synchronization tracking of the spread-spectrum preamble signal according to the synchronization information.
  • an embodiment of the present application provides a signal synchronization device, which includes a memory and a processor; wherein,
  • a memory configured to store a computer program that can run on the processor
  • the processor is configured to execute the method as described in the first aspect when running the computer program.
  • an embodiment of the present application provides a computer storage medium that stores a signal synchronization program that implements the method described in the first aspect when the signal synchronization program is executed by at least one processor.
  • the signal synchronization method, device, and computer storage medium provided by the embodiments of the present application first receive a spread-spectrum preamble signal.
  • the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1; Each sequence in the spread-spectrum preamble signal is subjected to the first correlation processing with the local signal to determine the N first processing results corresponding to the spread-spectrum preamble signal; Perform second correlation processing between the processing result and the local signal to determine the second processing result corresponding to the spread-spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; Finally, based on the maximum value, the synchronization information of the spread-spectrum preamble signal is determined, and the synchronization of the spread-spectrum preamble signal is realized according to the synchronization information; in this way, the received spread-spectrum preamble signal is mutually exchanged with the local signal.
  • FIG. 1 is a schematic diagram of the composition structure of a wireless modem provided by related technical solutions
  • FIG. 2 is a schematic flowchart of a signal synchronization method provided by an embodiment of this application.
  • FIG. 3 is a schematic diagram of a simulation signal corresponding to a spread spectrum preamble signal provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of a simulation result of conjugate multiplication of a spread spectrum preamble signal and a local chirp signal provided by an embodiment of the application;
  • FIG. 5 is a schematic diagram of an FFT result obtained by performing conjugate multiplication of a spread spectrum preamble signal and a local chirp signal according to an embodiment of the application;
  • FIG. 6 is a schematic diagram of a simulation result of another spread spectrum preamble signal and a local chirp signal performing conjugate multiplication according to an embodiment of this application;
  • FIG. 7 is a schematic diagram of an FFT result of another spread-spectrum preamble signal and a local chirp signal subjected to conjugate multiplication according to an embodiment of the application;
  • FIG. 8 is a detailed flowchart of a signal synchronization method provided by an embodiment of this application.
  • FIG. 9 is a schematic diagram of a simulation result of another spread spectrum preamble signal and a local chirp signal performing conjugate multiplication according to an embodiment of this application;
  • FIG. 10 is a schematic diagram of another FFT result obtained by performing conjugate multiplication of a spread spectrum preamble signal and a local chirp signal according to an embodiment of this application;
  • FIG. 11 is a schematic diagram of another FFT result obtained by performing conjugate multiplication of a spread spectrum preamble signal and a local chirp signal according to an embodiment of the application;
  • FIG. 12 is a schematic diagram of the composition structure of a signal synchronization device provided by an embodiment of the application.
  • FIG. 13 is a schematic diagram of a specific hardware structure of a signal synchronization device provided by an embodiment of the application.
  • LoRa can be regarded as the abbreviation of Long Range, which is a kind of Low Power Wide Area Network (LPWAN) communication technology.
  • LPWAN Low Power Wide Area Network
  • LoRa can provide users with a simple means of long-distance, low-power wireless communication.
  • the biggest feature of LoRa is that it can travel farther than other wireless methods under the same power consumption, realizes the unity of low power consumption and long distance, and can compare the traditional radio frequency communication distance under the same power consumption. Expand 3 to 5 times.
  • LoRa is a physical layer or wireless modulation used to establish long-distance communication links. Many traditional wireless systems use Frequency-Shift Keying (FSK) modulation as the physical layer, which can effectively meet the needs of low power consumption.
  • FSK Frequency-Shift Keying
  • LoRa is based on chirp spread spectrum modulation, which not only retains the same low power consumption characteristics as FSK modulation, but also increases the communication distance. Because it can achieve long communication distance and interference robustness, LoRa is the first low-cost implementation for commercial use. With the introduction of LoRa, LoRa technology has changed the traditional compromise between transmission distance and power consumption. , Provides a simple communication system that can realize long-distance, large-capacity, and low-cost. The principle of its radio receiver is shown in Figure 1.
  • the transceiver includes a baseband part 200 and a radio frequency part 100.
  • the modulator 150 for the transmitter part of the transceiver, the modulator 150 generates a baseband signal based on the digital data 152 at its input.
  • the I and Q components in the baseband signal are converted into the desired transmission frequency by the radio frequency part 100, and then Amplified by an over-power amplifier (PA) 120 and transmitted through an antenna; that is, by combining the signal provided by the amplifier 154 with a phase-locked loop (PLL) circuit 190 in the mixer 110
  • PA over-power amplifier
  • PLL phase-locked loop
  • the receiver part of the transceiver includes a low noise amplifier (LNA) 160, and a low noise amplifier 160 and
  • the power amplifier 120 is isolated by a switch (SW) 102 to achieve a bidirectional management mode; after the low noise amplifier 160 is a down-conversion stage 170 that generates a series of chirped baseband signals, and then the baseband signals pass through a video graphics array (Video Graphics Array).
  • the Graphics Array (VGA) interface is transmitted to the demodulator 180 for processing and provides a reconstructed digital signal 182; here, the function of the demodulator 180 is the inverse transformation of the function of the modulator 150.
  • Chirp Spread Spectrum is a spread spectrum technology used in communication systems.
  • CSS modulation if the transmitted radio frequency pulse signal changes linearly in its carrier frequency within one cycle, it is called chirp; here, the chirp signal is also called a chirp signal. Because its frequency changes in a wider frequency band, the frequency band of the signal is also broadened. Specifically, there is a sawtooth wave at the transmitting end to modulate the voltage-controlled oscillator, thereby generating chirp pulses. It is the same as the signal generated by the sweep signal generator. At the receiving end, the chirp is compressed by a matched filter, and the energy is concentrated in a short period of time to output, thereby improving the signal-to-noise ratio and gaining processing gain.
  • the matched filter can use a dispersive delay line, which is a storage and accumulation device, and its mechanism of action is that the delay time for different frequencies is different. If the frequencies at both ends of the pulse are output together after different delays, the matched filter plays a role in pulse compression and energy concentration.
  • the improvement of the output signal-to-noise ratio of the matched filter is a function of the product of the pulse width and the FM deviation.
  • f 0 is the center frequency of the chirp signal
  • T is the period of the chirp signal
  • k is the slope of the chirp signal, which controls the rate of frequency change.
  • the CSS spread spectrum technology can greatly increase the carrier-to-noise ratio threshold of the receiver's demodulation, and the sensitivity of the receiver's demodulation can be improved again through the Hamming code.
  • the premise of receiver demodulation is to discover and identify the transmitter's preamble code and synchronize with it. Since the preamble code is recognized as a fixed format, it cannot be coded or decoded. For example, the preamble code in LoRa technology does not have any modulation information, but the frequency changes linearly from -BW to BW, and the receiver must perform it when receiving any signal It is judged whether it is a valid signal, so the judgment and synchronization of the preamble code have high requirements on power consumption and time.
  • LoRa IoT devices can be above -140dBm through a high spreading factor, and at the same time it has good power consumption performance; but it is difficult to achieve this indicator in actual scene testing.
  • the main reasons are as follows: The performance of is not limited by the signal-to-noise ratio but by the adjacent channel interference of other frequency bands; in addition, the signal that is too weak cannot be identified and synchronized in the preamble code.
  • the embodiment of the application provides a signal synchronization method.
  • a spread-spectrum preamble signal is received.
  • the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1, and then the spread-spectrum preamble signal Each sequence is subjected to the first correlation processing with the local signal to determine the N first processing results corresponding to the spread spectrum preamble signal; then the two first processing results before and after the N first processing results are compared with the local signal Perform second correlation processing to determine the second processing result corresponding to the spread spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; finally, based on the maximum value, determine Spread-spectrum preamble signal synchronization information, and realize the synchronization tracking of the spread-spectrum preamble signal according to the synchronization information; in this way, the received spread-spectrum preamble signal and the local signal are subjected to cross-correlation processing, and based on
  • FIG. 2 shows a schematic flowchart of a signal synchronization method provided in an embodiment of the present application.
  • the method may include:
  • S201 Receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
  • a signal can be transmitted through the transmitter and then received by the receiver; and the premise of signal demodulation in the receiver is to find and identify the transmitter’s preamble code and synchronize with it.
  • the transmitter may be located in the terminal device, and the receiver may be located in the base station, but the embodiment of the present application does not specifically limit it.
  • the transmitted signal can be represented by the following formula (2), as shown below,
  • phi represents the initial phase, and the value of phi can generally be 0;
  • the spread-spectrum preamble signal can use the chirp signal generated as above, and assuming that the period is 0, the signal example obtained by the spread-spectrum preamble signal in MATLAB simulation is shown in FIG. 3.
  • the horizontal axis represents time (indicated by Time), and the unit is represented by seconds (s); the vertical axis represents frequency (indicated by Frequency), and the unit is represented by hertz (Hz).
  • the preamble code can be composed of N repetitive sequences with a length of 2 ⁇ SF; that is, the spread spectrum preamble signal includes N sequences, and each sequence includes M points; among them, N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1.
  • the value of M may be 2 ⁇ SF.
  • the method may further include:
  • the preset sampling rate represents a preset sampling frequency for sampling the received spread spectrum preamble signal.
  • the preset sampling rate is set according to actual conditions.
  • the preset sampling rate in the embodiment of the present application is usually a high sampling rate, and generally can be twice the sampling rate or four times the sampling rate.
  • the received spread-spectrum preamble signal can be sampled according to the preset sampling rate (such as twice the sampling rate), and the sampled spread-spectrum preamble signal can be determined as the spread-spectrum preamble signal, and then follow-up The first correlation processing and the second correlation processing are calculated.
  • the preset sampling rate such as twice the sampling rate
  • S202 Perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
  • the spread spectrum preamble signal is a chirp signal
  • the local signal is also a chirp signal.
  • the chirp signal is an up chirp signal; among them, as shown in Figure 3, for the spread spectrum preamble signal, the frequency is an up process that gradually rises from 0 to 12 ⁇ 10 4, so it can be called up chirp signal.
  • each sequence can be subjected to the first correlation processing with the local signal respectively, so that the N first-correlation processing corresponding to the spread-spectrum preamble signal can be determined. process result.
  • the first correlation processing is performed on each sequence in the spread-spectrum preamble signal with a local signal, and the N corresponding to the spread-spectrum preamble signal are determined.
  • the first processing result may include:
  • the obtained N FFT results are determined as the N first processing results corresponding to the spread spectrum preamble signal.
  • the first correlation processing is performed on each sequence in the spread-spectrum preamble signal with the local signal. Specifically, it may mean that each sequence in the spread-spectrum preamble signal is conjugate multiplied with the local signal, respectively. Obtain N product signals; and then perform FFT operations on each of the N product signals separately to obtain N FFT results.
  • each product signal can include M points. Specifically, by performing FFT operation on the M points included in each product signal, the corresponding value of each product signal can be obtained. FFT results, so that N FFT results can be obtained, and N first processing results corresponding to the spread spectrum preamble signal are also obtained.
  • S203 Perform second correlation processing on the two first processing results before and after among the N first processing results and the local signal, and determine a second processing result corresponding to the spread-spectrum preamble signal;
  • the two first processing results before and after the local signal can be subjected to second correlation processing, so that the second processing result corresponding to the spread spectrum preamble signal can be determined .
  • the two first processing results before and after the N first processing results are subjected to second correlation processing with the local signal to determine the spread spectrum
  • the second processing result corresponding to the preamble signal may include:
  • the obtained correlation result is determined as the second processing result corresponding to the spread spectrum preamble signal.
  • the second correlation processing is performed on the two first processing results before and after the local signal among the N first processing results. Specifically, it may mean that the two FFT results before and after the obtained N FFT results are The same position is conjugate multiplied with the local signal, and then the multiplied result is accumulated and processed, so that the correlation result can be obtained, and the second processing result corresponding to the spread-spectrum preamble signal is obtained.
  • the preset threshold is a predetermined value used to measure whether the received spread-spectrum preamble signal is a useful signal.
  • the value of the preset threshold is set according to actual conditions, and the embodiment of the present application does not specifically limit it.
  • the correlation window represents a sliding window corresponding to the first correlation processing performed on each sequence in the spread spectrum preamble. That is to say, after each sequence in the spread spectrum preamble signal is conjugate multiplied by the local signal, the sliding window of the FFT operation is performed on the product signal.
  • the length of the sliding window is related to the sequence length; in the embodiment of the present application, the length of the sliding window may be equal to the sequence length, for example, each sequence includes 2 ⁇ SF points, then the length of the sliding window is also 2 ⁇ SF points point. In this way, only when the start time and end time corresponding to the sliding window are correct, the second processing result obtained at this time is the maximum value.
  • the method may further include:
  • the second processing result is greater than the preset threshold, determining that the spread-spectrum preamble signal is a useful signal, and continuing to perform the step of querying the maximum value of the second processing result in the relevant window;
  • the second processing result is not greater than the preset threshold, it is determined that the spread spectrum preamble signal is a non-useful signal, and the step of querying the maximum value of the second processing result in the relevant window is stopped.
  • the process shown in FIG. 2 can be continued, that is, the query in the relevant window needs to be continued.
  • the step of the maximum value of the second processing result if the second processing result is not greater than the preset threshold, it indicates that the received spread spectrum preamble signal is not a useful signal. At this time, there is no need to continue the process shown in Figure 2 , That is, there is no need to perform the step of querying the maximum value of the second processing result in the relevant window.
  • S205 Determine synchronization information of the spread spectrum preamble signal based on the maximum value, and implement synchronization tracking of the spread spectrum preamble signal according to the synchronization information.
  • the maximum value of the second processing result can be queried at this time; according to the maximum value, the synchronization information of the spread spectrum preamble signal can be determined, thereby realizing the Synchronous tracking of spread-spectrum preamble signals.
  • the synchronization tracking includes time synchronization tracking and frequency synchronization tracking.
  • time synchronization tracking and frequency synchronization tracking the two are processed in parallel, and there is no priority.
  • the determining the synchronization information of the spread spectrum preamble signal based on the maximum value may include:
  • the spread-spectrum preamble signal needs to be sampled, and the sampling processing is performed at a high sampling rate, usually twice Sampling rate or quadruple sampling rate.
  • the frequency compensation requires fractional frequency offset estimation.
  • the frequency synchronization tracking if the frequencies of the two are inconsistent, the time value corresponding to the maximum value can be determined according to the maximum value obtained at this time; the fractional frequency offset estimation is performed according to the time value Therefore, the frequency offset estimation value can be obtained; frequency compensation is performed on the spread spectrum preamble signal according to the frequency offset estimation value, and the frequency synchronization tracking of the spread spectrum preamble signal is realized.
  • the determining the synchronization information of the spread spectrum preamble signal based on the maximum value includes:
  • the sequence corresponding to the maximum value is determined according to the maximum value that is queried; then the start time and end time of the sequence are obtained according to the determined sequence; The start time and end time also realize the time synchronization tracking of the spread spectrum preamble signal.
  • This embodiment provides a signal synchronization method by receiving a spread-spectrum preamble signal.
  • the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1, and each of the spread-spectrum preamble signals The sequence is first correlated with the local signal to determine the N first processing results corresponding to the spread-spectrum preamble signal; the two first processing results before and after the N first processing results and the local signal are second Correlation processing, determine the second processing result corresponding to the spread spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; determine the spread spectrum preamble based on the maximum value
  • the synchronization information of the signal and the synchronization tracking of the spread spectrum preamble signal according to the synchronization information; in this way, the received spread spectrum preamble signal and the local signal are subjected to cross-correlation processing, and the results obtained after the cross-correlation processing To determine the synchronization information
  • FIG. 8 shows a detailed flowchart of a signal synchronization method provided by an embodiment of the present application. As shown in Figure 8, the detailed process may include:
  • S801 Receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
  • S802 Perform sampling processing on the received spread-spectrum preamble signal according to a preset sampling rate, and determine the sampled spread-spectrum preamble signal as the spread-spectrum preamble signal;
  • the receiver receives the spread-spectrum preamble signal, and the spread-spectrum preamble signal may be an up chirp signal.
  • the preamble code can be composed of N repetitive sequences with a length of 2 ⁇ SF; that is, the spread spectrum preamble signal includes N sequences, and each sequence includes M points; where N is greater than or A positive integer equal to 1, and M is a positive integer greater than or equal to 1.
  • the value of M may be 2 ⁇ SF.
  • the received spread-spectrum preamble signal is sampled according to the preset sampling rate (for example, twice the sampling rate), and the sampled spread-spectrum preamble signal is determined as the spread-spectrum preamble signal, and then the follow-up is performed on it.
  • the preset sampling rate for example, twice the sampling rate
  • S803 Perform conjugate multiplication of each sequence in the spread spectrum preamble signal with a local chirp signal to obtain N product signals;
  • S804 Perform an FFT operation on each product signal of the N product signals to obtain N FFT results
  • each sequence in the spread spectrum preamble signal is subjected to the first correlation processing with the local chirp signal. Specifically, it may refer to the first correlation process of the spread spectrum preamble signal.
  • Each sequence in the signal is conjugate multiplied with the local chirp signal to obtain N product signals; then, each of the N product signals is subjected to FFT operation separately to obtain N FFT results.
  • each sequence in the spread spectrum preamble signal is conjugate multiplied with the local chirp signal to obtain N product signals; the corresponding codes are as follows:
  • decoder(i+1:i+2 ⁇ SF) preamble(i+1:i+2 ⁇ SF).*conj(local);
  • the FFT operation is performed on each of the N product signals to obtain N FFT results;
  • the corresponding codes are as follows:
  • preamble(i+1:i+2 ⁇ SF) represents the i-th sequence in the received spread spectrum preamble signal
  • conj(local) represents the local chirp signal
  • decoder(i+1:i+2 ⁇ SF) represents the product signal corresponding to the i-th sequence
  • DECODER(k) represents the FFT result corresponding to the k-th product signal; since the value of k is 0 to N-1, N FFT results can be obtained in this way.
  • the second correlation processing is performed on the two FFT results before and after the N FFT results and the local chirp signal. Specifically, it can refer to the first correlation of the obtained N FFT results.
  • the two FFT results before and after are conjugate multiplied with the local signal at the same position, and then the multiplied results are accumulated and processed, so that the correlation result can be obtained.
  • the calculation results of the 4 FFTs are accumulated at this time, and the peak value is the largest among the correlation results obtained. , That is, the correlation result is the maximum value; however, if the sequence of 2 ⁇ SF points selects the wrong start time and end time, that is, the initial and end time of the selected 2 ⁇ SF are inconsistent with the sequence, at this time
  • the calculation results of the 4 FFTs are accumulated, and two peaks can be obtained, and the two peaks are smaller than the peak under the correct situation.
  • S807 Determine synchronization information of the spread spectrum preamble signal based on the maximum value, and implement time synchronization tracking and frequency synchronization tracking of the spread spectrum preamble signal according to the synchronization information.
  • the preset threshold is a predetermined value used to measure whether the received spread-spectrum preamble signal is a useful signal.
  • the value of the preset threshold is set according to actual conditions, and the embodiment of the present application does not specifically limit it. In this way, after the correlation result is obtained, the correlation result can be compared with the preset threshold, and according to the comparison result, it can be determined whether the received spread spectrum preamble signal is a useful signal, so as to determine whether S806 needs to be executed, that is, whether it is needed.
  • the step of querying the maximum value of the correlation result in the correlation window is a predetermined value used to measure whether the received spread-spectrum preamble signal is a useful signal.
  • the search continues for a period of time, and the maximum value of the correlation result can be queried in the correlation window; according to the maximum value, the spread spectrum preamble signal can be determined Synchronous information, thus realizing the synchronous tracking of the spread spectrum preamble signal.
  • the spread-spectrum preamble signal needs to be sampled, and the sampling processing is performed at a high sampling rate, usually twice the sampling rate. Or quadruple sampling rate.
  • the frequency compensation requires fractional frequency offset estimation. That is to say, for frequency synchronization tracking, if the frequencies of the two are inconsistent, the time value corresponding to the maximum value can be determined according to the maximum value obtained at this time; the fractional frequency offset is estimated according to the time value, thereby The frequency offset estimation value can be obtained; frequency compensation is performed on the spread spectrum preamble signal according to the frequency offset estimation value, and the frequency synchronization tracking of the spread spectrum preamble signal is realized.
  • the sequence corresponding to the maximum value is determined according to the maximum value found; then the start time and end time of the sequence are obtained according to the determined sequence; thus according to the start time And the end time, the spread spectrum preamble signal can be time synchronized tracking. That is to say, when the correlation result is the maximum value, the sequence of 2 ⁇ SF points at this time selects the correct start time and end time, thereby realizing the time synchronization tracking of the spread spectrum preamble signal.
  • FIG. 9 shows a schematic diagram of the simulation result of a spread spectrum preamble signal related to the two preamble code characters before and after the spread spectrum provided by the embodiment of the application; correspondingly, the FFT result is shown in FIG. It can be seen that the peak value has been reduced.
  • the two can be cross-correlation processing, and then the result can be obtained through cross-correlation processing.
  • the peak value is judged to obtain the start time and end time of each character, so as to achieve time synchronization. At this time, it is also possible to quickly determine the relevant window of the FFT operation required by the corresponding 2 ⁇ SF.
  • the spread spectrum preamble signal includes multiple preamble code characters
  • the result is The FFT result is shown in Figure 11. It can be seen from Figure 11 that for multiple preamble code characters, there are multiple corresponding peaks.
  • cross-correlation processing of the local chirp signal and the received chirp signal can quickly determine The start time and end time of each character, and the difference of carrier frequency can be judged for frequency compensation, so that the synchronization information of the spread spectrum preamble signal can be determined, and the time domain of the preamble code in the CSS spread spectrum signal can be realized. Synchronize with the frequency domain; in addition, in the early stage of CSS, it can save a lot of power consumption and computing time. The receiver does not need to perform FFT operations all the time.
  • the sliding window with the largest peak value in the FFT is selected based on the results of the FFT before and after, and the signal synchronization method It is quickly determined that the corresponding M points require a sliding window for FFT operation, which can also improve the overall performance of the receiver.
  • FIG. 12 shows an example of the composition structure of a signal synchronization device 120 provided by an embodiment of the present application.
  • the signal synchronization device 120 may include : Receiving unit 1201, processing unit 1202, query unit 1203, and synchronization unit 1204, where:
  • the receiving unit 1201 is configured to receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
  • the processing unit 1202 is configured to perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
  • the processing unit 1202 is further configured to perform second correlation processing on the two first processing results before and after the N first processing results and the local signal, and determine a second processing result corresponding to the spread spectrum preamble signal ;
  • the query unit 1203 is configured to query the maximum value of the second processing result in a correlation window if the second processing result is greater than a preset threshold; wherein, the correlation window represents each of the spread spectrum preambles The sliding window corresponding to the sequence of performing the first correlation processing;
  • the synchronization unit 1204 is configured to determine synchronization information of the spread-spectrum preamble signal based on the maximum value, and implement synchronization tracking of the spread-spectrum preamble signal according to the synchronization information.
  • the signal synchronization device 120 may further include a determining unit 1205 and an estimation unit 1206, where:
  • the determining unit 1205 is configured to determine a time value corresponding to the maximum value according to the maximum value
  • the estimation unit 1206 is configured to perform a fractional frequency offset estimation according to the time value to obtain an estimated value of the frequency offset;
  • the synchronization unit 1204 is specifically configured to perform frequency synchronization tracking on the spread spectrum preamble signal according to the frequency offset estimation value.
  • the determining unit 1205 is further configured to determine a sequence corresponding to the maximum value according to the maximum value; and obtain the start time and end time of the sequence according to the determined sequence;
  • the synchronization unit 1204 is specifically configured to perform time synchronization tracking on the spread spectrum preamble signal according to the start time and the end time.
  • the signal synchronization device 120 may further include a sampling unit 1207 configured to sample the received spread spectrum preamble signal according to a preset sampling rate, and determine the sampled spread spectrum preamble signal Is the spread spectrum preamble signal.
  • the processing unit 1202 is specifically configured to perform conjugate multiplication on each sequence in the spread spectrum preamble signal with a local signal to obtain N product signals; and perform conjugate multiplication on each of the N product signals; Fast Fourier transform FFT operations are performed on the two product signals respectively to obtain N FFT results; and the obtained N FFT results are determined as the N first processing results corresponding to the spread spectrum preamble signal.
  • the processing unit 1202 is specifically configured to perform conjugate multiplication with the local signal at the same position on the front and back two FFT results among the obtained N FFT results, and accumulate the multiplied results Processing to obtain a correlation result; and determining the obtained correlation result as the second processing result corresponding to the spread spectrum preamble signal.
  • the signal synchronization device 120 may further include a determining unit 1208 configured to determine whether the second processing result is greater than a preset threshold;
  • the determining unit 1205 is further configured to determine that the spread-spectrum preamble signal is not a useful signal if the second processing result is not greater than a preset threshold, and stop performing the query of the second processing result in the relevant window Maximum step.
  • a "unit” may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course, it may also be a module, or it may also be non-modular.
  • the various components in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be realized in the form of hardware or software function module.
  • the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this embodiment is essentially or It is said that the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can A personal computer, server, or network device, etc.) or a processor (processor) executes all or part of the steps of the method described in this embodiment.
  • the aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
  • this embodiment provides a computer storage medium that stores a signal synchronization program that implements the method described in any one of the foregoing embodiments when the signal synchronization program is executed by at least one processor.
  • FIG. 13 shows an example of the specific hardware structure of the signal synchronization device 120 provided by the embodiment of the present application, which may include: a communication interface 1301, a memory 1302, and a processor 1303 ;
  • the various components are coupled together through the bus system 1304.
  • the bus system 1304 is used to implement connection and communication between these components.
  • the bus system 1304 also includes a power bus, a control bus, and a status signal bus.
  • various buses are marked as the bus system 1304 in FIG. 13.
  • the communication interface 1301 is configured to receive and send signals in the process of sending and receiving information with other external network elements;
  • the memory 1302 is configured to store a computer program that can run on the processor 1303;
  • the processor 1303 is configured to execute: when running the computer program:
  • the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1;
  • the correlation window represents that each sequence in the spread spectrum preamble is subjected to the first correlation processing The corresponding sliding window;
  • the synchronization information of the spread-spectrum preamble signal is determined, and synchronization tracking of the spread-spectrum preamble signal is realized according to the synchronization information.
  • the memory 1302 in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), and electrically available Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be random access memory (Random Access Memory, RAM), which is used as an external cache.
  • RAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • Enhanced SDRAM, ESDRAM Synchronous Link Dynamic Random Access Memory
  • Synchlink DRAM Synchronous Link Dynamic Random Access Memory
  • DRRAM Direct Rambus RAM
  • the processor 1303 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 1303 or instructions in the form of software.
  • the aforementioned processor 1303 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP Digital Signal Processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 1302, and the processor 1303 reads the information in the memory 1302, and completes the steps of the foregoing method in combination with its hardware.
  • the embodiments described in this application can be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof.
  • the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable Logic device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, and others for performing the functions described in this application Electronic unit or its combination.
  • ASIC application specific integrated circuits
  • DSP Digital Signal Processing
  • DSP Device digital signal processing equipment
  • PLD programmable Logic Device
  • PLD Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the technology described in this application can be implemented through modules (for example, procedures, functions, etc.) that perform the functions described in this application.
  • the software codes can be stored in the memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.
  • the processor 1303 is further configured to execute the method described in any one of the foregoing embodiments when the computer program is running.
  • the spread spectrum preamble signal is first received.
  • the spread spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1.
  • each sequence in the spread spectrum preamble signal is connected to the local Perform first correlation processing on the signal to determine N first processing results corresponding to the spread-spectrum preamble signal; then perform second correlation processing on the two first processing results before and after the N first processing results and the local signal, Determine the second processing result corresponding to the spread-spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; finally, based on the maximum value, determine the value of the spread-spectrum preamble signal Synchronization information, and realize synchronization tracking of spread spectrum preamble signal according to said synchronization information; in this way, by cross-correlating the received spread spectrum preamble signal with the local signal, and according to the peak value obtained after cross-correlation processing Through the judgment, the synchronization information of the spread spectrum

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

Disclosed in the embodiments of the present application are a signal synchronization method and apparatus, and a computer storage medium. The method comprises: receiving a spread spectrum preamble signal, the spread spectrum preamble signal comprising N sequences, wherein N is a positive integer greater than or equal to 1; separately performing first correlation processing with a local signal on each sequence in the spread spectrum preamble signal to determine N first processing results corresponding to the spread spectrum preamble signal; performing second correlation processing with the local signal on two adjacent first processing results among the N first processing results to determine second processing results corresponding to the spread spectrum preamble signal; if the second processing results are greater than a preset threshold, then querying the maximum value of the second processing results in a correlation window; and on the basis of the maximum value, determining synchronization information of the spread spectrum preamble signal, and implementing synchronization tracking of the spread spectrum preamble signal according to the synchronization information.

Description

一种信号同步方法、装置以及计算机存储介质Signal synchronization method, device and computer storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为201911147089.3、申请日为2019年11月21日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。This application is based on a Chinese patent application with an application number of 201911147089.3 and an application date of November 21, 2019, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application by way of introduction.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种信号同步方法、装置以及计算机存储介质。This application relates to the field of communication technology, and in particular to a signal synchronization method, device, and computer storage medium.
背景技术Background technique
啁啾扩频(Chirp Spread Spectrum,CSS)是通信系统中使用的一种扩频技术,也可以称为宽带线性调频(Chirp Modulation)。在CSS调制中,发射的射频脉冲信号在一个周期内,其载频的频率作线性变化。因为其频率在较宽的频带内变化,相应地,信号的频带也被展宽,故称为扩频技术。Chirp Spread Spectrum (CSS) is a spread spectrum technology used in communication systems, and it can also be called wideband chirp modulation (Chirp Modulation). In CSS modulation, the transmitted radio frequency pulse signal changes linearly in the frequency of its carrier frequency within one cycle. Because its frequency changes in a wider frequency band, correspondingly, the frequency band of the signal is also expanded, so it is called spread spectrum technology.
通过CSS扩频技术可以极大提高接收器解调的载噪比门限,且通过汉明码等可以再次提高接收器解调的灵敏度。然而,接收机解调的前提是发现并识别发射机的随机接入前导码(preamble)并与之进行同步。由于Preamble码作为固定格式去识别,无法进行编解码,使得接收机对preamble码的判断和同步在功耗和时间上具有很高要求,而且过弱的信号还无法在preamble码中识别并完成同步。The CSS spread spectrum technology can greatly increase the carrier-to-noise ratio threshold of the receiver's demodulation, and the sensitivity of the receiver's demodulation can be improved again through the Hamming code. However, the premise of demodulation by the receiver is to discover and identify the random access preamble of the transmitter and synchronize with it. As the preamble code is recognized as a fixed format, encoding and decoding cannot be performed, so that the receiver has high requirements on power consumption and time for the judgment and synchronization of the preamble code, and the too weak signal cannot be identified and synchronized in the preamble code. .
发明内容Summary of the invention
本申请实施例提出一种信号同步方法、装置以及计算机存储介质,不仅能够节省功耗和运算时间,还能够实现CSS扩频信号中preamble码的时域和频域同步。The embodiments of the present application propose a signal synchronization method, device, and computer storage medium, which can not only save power consumption and operation time, but also achieve time domain and frequency domain synchronization of the preamble code in the CSS spread spectrum signal.
本申请的技术方案是这样实现的:The technical solution of this application is realized as follows:
第一方面,本申请实施例提供了一种信号同步方法,该方法包括:In the first aspect, an embodiment of the present application provides a signal synchronization method, which includes:
接收扩频前导码信号,所述扩频前导码信号包括N个序列,N为大于或等于1的正整数;Receiving a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1;
对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果;Perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果;Performing second correlation processing on two first processing results before and after the N first processing results and the local signal to determine a second processing result corresponding to the spread-spectrum preamble signal;
若所述第二处理结果大于预设阈值,则在相关窗口内查询所述第二处理结果的最大值;其中,所述相关窗口表征所述扩频前导码中每个序列进行第一相关处理所对应的滑动窗口;If the second processing result is greater than the preset threshold, query the maximum value of the second processing result in a correlation window; wherein, the correlation window represents that each sequence in the spread spectrum preamble is subjected to the first correlation processing The corresponding sliding window;
基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的同步跟踪。Based on the maximum value, the synchronization information of the spread-spectrum preamble signal is determined, and synchronization tracking of the spread-spectrum preamble signal is realized according to the synchronization information.
第二方面,本申请实施例提供了一种信号同步装置,该信号同步装置包括接收单元、处理单元、查询单元和同步单元,其中,In a second aspect, an embodiment of the present application provides a signal synchronization device, which includes a receiving unit, a processing unit, an inquiry unit, and a synchronization unit, wherein:
接收单元,配置为接收扩频前导码信号,所述扩频前导码信号包括N个序列,N为大于或等于1的正整数;A receiving unit configured to receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
处理单元,配置为对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果;A processing unit, configured to perform first correlation processing on each sequence in the spread-spectrum preamble signal with a local signal, and determine N first processing results corresponding to the spread-spectrum preamble signal;
处理单元,还配置为对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果;The processing unit is further configured to perform second correlation processing on the two first processing results before and after among the N first processing results and the local signal, and determine a second processing result corresponding to the spread-spectrum preamble signal;
查询单元,配置为若所述第二处理结果大于预设阈值,则在相关窗口内查询所述第二处理结果的最大值;其中,所述相关窗口表征所述扩频前导码中每个序列进行第一相关处理所对应的滑动窗口;The query unit is configured to query the maximum value of the second processing result in a correlation window if the second processing result is greater than a preset threshold; wherein, the correlation window represents each sequence in the spread spectrum preamble The sliding window corresponding to the first relevant processing;
同步单元,配置为基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的同步跟踪。The synchronization unit is configured to determine synchronization information of the spread-spectrum preamble signal based on the maximum value, and implement synchronization tracking of the spread-spectrum preamble signal according to the synchronization information.
第三方面,本申请实施例提供了一种信号同步装置,该信号同步装置包括存储器和处理器;其中,In a third aspect, an embodiment of the present application provides a signal synchronization device, which includes a memory and a processor; wherein,
存储器,配置为存储能够在所述处理器上运行的计算机程序;A memory configured to store a computer program that can run on the processor;
处理器,配置为在运行所述计算机程序时,执行如第一方面所述的方法。The processor is configured to execute the method as described in the first aspect when running the computer program.
第四方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质存储有信号同步程序,所述信号同步程序被至少一个处理器执行时实现如第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer storage medium that stores a signal synchronization program that implements the method described in the first aspect when the signal synchronization program is executed by at least one processor.
本申请实施例所提供的一种信号同步方法、装置以及计算机存储介质,首先接收扩频前导码信号,该扩频前导码信号包括N个序列,N为大于或等于1的正整数;然后对该扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定扩频前导码信号对应的N个第一处理结果;再对N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定扩频前导码信号对应的第二处理结果;若第二处理结果大于预设阈值,则在相关窗口内查询第二处理结果的最大值;最后基于该最大值,确定扩频前导码信号的同步信息,并根据所述同步信息实现对扩频前导码信号的同步跟踪;这样,通过将接收到的扩频前导码信号与本地信号进行互相关处理,并根据互相关处理后所得到的峰值进行判断,从而能够确定出该扩频前导码信号的同步信息,可以实现CSS扩频信号中preamble码的时域和频域同步;另 外,本申请实施例的方案不需要接收机一直做快速傅里叶变换(Fast Fourier Transform,FFT)的运算,还可以节省功耗和运算时间,从而还能够提升接收机的整体性能。The signal synchronization method, device, and computer storage medium provided by the embodiments of the present application first receive a spread-spectrum preamble signal. The spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1; Each sequence in the spread-spectrum preamble signal is subjected to the first correlation processing with the local signal to determine the N first processing results corresponding to the spread-spectrum preamble signal; Perform second correlation processing between the processing result and the local signal to determine the second processing result corresponding to the spread-spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; Finally, based on the maximum value, the synchronization information of the spread-spectrum preamble signal is determined, and the synchronization of the spread-spectrum preamble signal is realized according to the synchronization information; in this way, the received spread-spectrum preamble signal is mutually exchanged with the local signal. Correlation processing, and judgment based on the peak value obtained after cross-correlation processing, so that the synchronization information of the spread spectrum preamble signal can be determined, and the time domain and frequency domain synchronization of the preamble code in the CSS spread spectrum signal can be realized; in addition, this The solution of the application embodiment does not require the receiver to always perform Fast Fourier Transform (FFT) calculations, and can also save power consumption and calculation time, thereby also improving the overall performance of the receiver.
附图说明Description of the drawings
图1为相关技术方案提供的一种无线调制解调器的组成结构示意图;FIG. 1 is a schematic diagram of the composition structure of a wireless modem provided by related technical solutions;
图2为本申请实施例提供的一种信号同步方法的流程示意图;2 is a schematic flowchart of a signal synchronization method provided by an embodiment of this application;
图3为本申请实施例提供的一种扩频前导码信号对应的仿真信号示意图;3 is a schematic diagram of a simulation signal corresponding to a spread spectrum preamble signal provided by an embodiment of the application;
图4为本申请实施例提供的一种扩频前导码信号与本地的chirp信号进行共轭相乘的仿真结果示意图;4 is a schematic diagram of a simulation result of conjugate multiplication of a spread spectrum preamble signal and a local chirp signal provided by an embodiment of the application;
图5为本申请实施例提供的一种扩频前导码信号与本地的chirp信号进行共轭相乘的FFT结果示意图;FIG. 5 is a schematic diagram of an FFT result obtained by performing conjugate multiplication of a spread spectrum preamble signal and a local chirp signal according to an embodiment of the application;
图6为本申请实施例提供的另一种扩频前导码信号与本地的chirp信号进行共轭相乘的仿真结果示意图;FIG. 6 is a schematic diagram of a simulation result of another spread spectrum preamble signal and a local chirp signal performing conjugate multiplication according to an embodiment of this application;
图7为本申请实施例提供的另一种扩频前导码信号与本地的chirp信号进行共轭相乘的FFT结果示意图;FIG. 7 is a schematic diagram of an FFT result of another spread-spectrum preamble signal and a local chirp signal subjected to conjugate multiplication according to an embodiment of the application;
图8为本申请实施例提供的一种信号同步方法的详细流程示意图;FIG. 8 is a detailed flowchart of a signal synchronization method provided by an embodiment of this application;
图9为本申请实施例提供的又一种扩频前导码信号与本地的chirp信号进行共轭相乘的仿真结果示意图;FIG. 9 is a schematic diagram of a simulation result of another spread spectrum preamble signal and a local chirp signal performing conjugate multiplication according to an embodiment of this application;
图10为本申请实施例提供的又一种扩频前导码信号与本地的chirp信号进行共轭相乘的FFT结果示意图;FIG. 10 is a schematic diagram of another FFT result obtained by performing conjugate multiplication of a spread spectrum preamble signal and a local chirp signal according to an embodiment of this application;
图11为本申请实施例提供的再一种扩频前导码信号与本地的chirp信号进行共轭相乘的FFT结果示意图;FIG. 11 is a schematic diagram of another FFT result obtained by performing conjugate multiplication of a spread spectrum preamble signal and a local chirp signal according to an embodiment of the application; FIG.
图12为本申请实施例提供的一种信号同步装置的组成结构示意图;FIG. 12 is a schematic diagram of the composition structure of a signal synchronization device provided by an embodiment of the application;
图13为本申请实施例提供的一种信号同步装置的具体硬件结构示意图。FIG. 13 is a schematic diagram of a specific hardware structure of a signal synchronization device provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅仅用于解释相关申请,而非对该申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关申请相关的部分。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It can be understood that the specific embodiments described here are only used to explain the related application, but not to limit the application. In addition, it should be noted that, for ease of description, only the parts related to the relevant application are shown in the drawings.
LoRa可以看作是Long Range的简称,为低功耗广域网(Low Power Wide Area Network,LPWAN)通信技术的一种。LoRa作为一种基于扩频技术的远距离无线传输技术,能够为用户提供一种简单的能实现远距离、低功耗无线通信手段。其中,LoRa的最大特点是在同功耗的条件下能够比其他无线方式传播的距离更远,实现了低功耗和远距离的统一,且在同功耗下可以比传统的无线射频通信距离扩大3~5倍。LoRa can be regarded as the abbreviation of Long Range, which is a kind of Low Power Wide Area Network (LPWAN) communication technology. As a long-distance wireless transmission technology based on spread spectrum technology, LoRa can provide users with a simple means of long-distance, low-power wireless communication. Among them, the biggest feature of LoRa is that it can travel farther than other wireless methods under the same power consumption, realizes the unity of low power consumption and long distance, and can compare the traditional radio frequency communication distance under the same power consumption. Expand 3 to 5 times.
LoRa是物理层或无线调制用于建立长距离通信链路,许多传统的无线系统使用频移键控(Frequency-Shift Keying,FSK)调制作为物理层,可以有效满足低功耗的需求。LoRa是基于线性调频扩频调制,不仅保留了与FSK调制相同的低功耗特性,并且增加了通信距离。由于其可以实现长通信距离和干扰的鲁棒性,而LoRa是第一个用于商业用途的低成本实现,随着LoRa的引入,LoRa技术改变了传统关于传输距离与功耗的折衷考虑方式,提供了一种简单的能实现远距离、大容量、低成本的通讯系统,其无线电接收机原理如图1所示。LoRa is a physical layer or wireless modulation used to establish long-distance communication links. Many traditional wireless systems use Frequency-Shift Keying (FSK) modulation as the physical layer, which can effectively meet the needs of low power consumption. LoRa is based on chirp spread spectrum modulation, which not only retains the same low power consumption characteristics as FSK modulation, but also increases the communication distance. Because it can achieve long communication distance and interference robustness, LoRa is the first low-cost implementation for commercial use. With the introduction of LoRa, LoRa technology has changed the traditional compromise between transmission distance and power consumption. , Provides a simple communication system that can realize long-distance, large-capacity, and low-cost. The principle of its radio receiver is shown in Figure 1.
具体地,在图1中,该收发机包括基带部分200和射频部分100。其中,针对该收发机的发射机部分,调制器150基于在其输入处的数字数据152而生成基带信号,该基带信号中的I分量和Q分量被射频部分100转换成期望的传输频率,再由过功率放大器(Power Amplifier,PA)120放大并通过天线传输;也就是说,通过在混频器110中将放大器154提供的信号与锁相环(Phase Locked Loop,PLL)电路190所生成的本地载波的同相分量和正交分量进行混频,可以完成信号从基带到预期频率的转换,而且PLL电路190链接到基准时钟129。一旦无线电链路的另一端上接收到该信号,其就由该收发机的接收机部分进行处理,其中,接收机部分包括低噪声放大器(Low Noise Amplifier,LNA)160,而且低噪声放大器160和功率放大器120通过开关(Switch,SW)102隔离,以实现双向管理模式;低噪声放大器160之后是生成包括一系列线性调频的基带信号的下变频级170,然后该基带信号通过视频图形阵列(Video Graphics Array,VGA)接口传输到解调器180进行处理,并提供经重建的数字信号182;这里,解调器180的功能是调制器150的功能的逆变换。Specifically, in FIG. 1, the transceiver includes a baseband part 200 and a radio frequency part 100. Among them, for the transmitter part of the transceiver, the modulator 150 generates a baseband signal based on the digital data 152 at its input. The I and Q components in the baseband signal are converted into the desired transmission frequency by the radio frequency part 100, and then Amplified by an over-power amplifier (PA) 120 and transmitted through an antenna; that is, by combining the signal provided by the amplifier 154 with a phase-locked loop (PLL) circuit 190 in the mixer 110 The in-phase component and quadrature component of the local carrier are mixed to complete the conversion of the signal from the baseband to the desired frequency, and the PLL circuit 190 is linked to the reference clock 129. Once the signal is received on the other end of the radio link, it is processed by the receiver part of the transceiver, where the receiver part includes a low noise amplifier (LNA) 160, and a low noise amplifier 160 and The power amplifier 120 is isolated by a switch (SW) 102 to achieve a bidirectional management mode; after the low noise amplifier 160 is a down-conversion stage 170 that generates a series of chirped baseband signals, and then the baseband signals pass through a video graphics array (Video Graphics Array). The Graphics Array (VGA) interface is transmitted to the demodulator 180 for processing and provides a reconstructed digital signal 182; here, the function of the demodulator 180 is the inverse transformation of the function of the modulator 150.
啁啾扩频(Chirp Spread Spectrum,CSS)是通信系统中使用的一种扩频技术。在CSS调制中,如果发射的射频脉冲信号在一个周期内,其载频的频率作线性变化,则称为线性调频;这里,线性调频信号又称为啁啾(chirp)信号。因为其频率在较宽的频带内变化,使得信号的频带也被展宽。具体地,在发射端有一锯齿波去调制压控振荡器,从而产生线性调频脉冲。它和扫频信号发生器产生的信号一样。在接收端,线性调频脉冲由匹配滤波器对其进行压缩,把能量集中在一个很短的时间内输出,从而提高了信噪比,获得了处理增益。匹配滤波器可采用色散延迟线,它是一个存储和累加器件,其作用机理是对不同频率的延迟时间不一样。如果使脉冲前后两端的频率经不同的延迟后一同输出,则匹配滤波器起到了脉冲压缩和能量集中的作用。匹配滤波器输出信噪比的改善是脉冲宽度与调频频偏乘积的函数。典型的CSS信号的数学表达式如下,Chirp Spread Spectrum (CSS) is a spread spectrum technology used in communication systems. In CSS modulation, if the transmitted radio frequency pulse signal changes linearly in its carrier frequency within one cycle, it is called chirp; here, the chirp signal is also called a chirp signal. Because its frequency changes in a wider frequency band, the frequency band of the signal is also broadened. Specifically, there is a sawtooth wave at the transmitting end to modulate the voltage-controlled oscillator, thereby generating chirp pulses. It is the same as the signal generated by the sweep signal generator. At the receiving end, the chirp is compressed by a matched filter, and the energy is concentrated in a short period of time to output, thereby improving the signal-to-noise ratio and gaining processing gain. The matched filter can use a dispersive delay line, which is a storage and accumulation device, and its mechanism of action is that the delay time for different frequencies is different. If the frequencies at both ends of the pulse are output together after different delays, the matched filter plays a role in pulse compression and energy concentration. The improvement of the output signal-to-noise ratio of the matched filter is a function of the product of the pulse width and the FM deviation. The mathematical expression of a typical CSS signal is as follows,
Figure PCTCN2020128840-appb-000001
Figure PCTCN2020128840-appb-000001
其中,f 0是chirp信号的中心频率,T是chirp信号的周期,k是chirp信号的斜率,控制频率变化的速率。 Among them, f 0 is the center frequency of the chirp signal, T is the period of the chirp signal, and k is the slope of the chirp signal, which controls the rate of frequency change.
目前的解决方案中,通过CSS扩频技术可以极大提高接收器解调的载噪比门限,且通过汉明码等可以再次提高接收器解调的灵敏度。然而,接收机解调的前提是发现并识别发射机的preamble码并与之进行同步。由于Preamble码作为固定格式去识别,无法进行编解码,比如LoRa技术中的preamble码没有任何的调制信息,只是频率从-BW到BW的线性频率变化,同时接收机必须在接收到任何信号时进行判断是否为有效信号,因此对preamble码的判断和同步在功耗上和时间上具有很高要求。虽然在LoRa物联网设备中通过很高的扩频因子可以将灵敏度做到-140dBm以上,且同时具有很好的功耗表现;但是在实际场景测试中很难达到该指标,主要原因如下,灵敏度的表现并不受制于信噪比而是受制于其他频段的邻频干扰;另外,过弱的信号还无法在preamble码中识别并完成同步。In the current solution, the CSS spread spectrum technology can greatly increase the carrier-to-noise ratio threshold of the receiver's demodulation, and the sensitivity of the receiver's demodulation can be improved again through the Hamming code. However, the premise of receiver demodulation is to discover and identify the transmitter's preamble code and synchronize with it. Since the preamble code is recognized as a fixed format, it cannot be coded or decoded. For example, the preamble code in LoRa technology does not have any modulation information, but the frequency changes linearly from -BW to BW, and the receiver must perform it when receiving any signal It is judged whether it is a valid signal, so the judgment and synchronization of the preamble code have high requirements on power consumption and time. Although the sensitivity of LoRa IoT devices can be above -140dBm through a high spreading factor, and at the same time it has good power consumption performance; but it is difficult to achieve this indicator in actual scene testing. The main reasons are as follows: The performance of is not limited by the signal-to-noise ratio but by the adjacent channel interference of other frequency bands; in addition, the signal that is too weak cannot be identified and synchronized in the preamble code.
本申请实施例提供了一种信号同步方法,首先接收扩频前导码信号,该扩频前导码信号包括N个序列,N为大于或等于1的正整数;然后对该扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定扩频前导码信号对应的N个第一处理结果;再对N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定扩频前导码信号对应的第二处理结果;若第二处理结果大于预设阈值,则在相关窗口内查询第二处理结果的最大值;最后基于该最大值,确定扩频前导码信号的同步信息,并根据所述同步信息实现对扩频前导码信号的同步跟踪;这样,通过将接收到的扩频前导码信号与本地信号进行互相关处理,并根据互相关处理后所得到的峰值进行判断,从而能够确定出该扩频前导码信号的同步信息,可以实现CSS扩频信号中preamble码的时域和频域同步;另外,本申请实施例的方案不需要接收机一直做FFT运算,还可以节省功耗和运算时间,从而还能够提升接收机的整体性能。The embodiment of the application provides a signal synchronization method. Firstly, a spread-spectrum preamble signal is received. The spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1, and then the spread-spectrum preamble signal Each sequence is subjected to the first correlation processing with the local signal to determine the N first processing results corresponding to the spread spectrum preamble signal; then the two first processing results before and after the N first processing results are compared with the local signal Perform second correlation processing to determine the second processing result corresponding to the spread spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; finally, based on the maximum value, determine Spread-spectrum preamble signal synchronization information, and realize the synchronization tracking of the spread-spectrum preamble signal according to the synchronization information; in this way, the received spread-spectrum preamble signal and the local signal are subjected to cross-correlation processing, and based on the cross-correlation The peak value obtained after processing is judged, so that the synchronization information of the spread spectrum preamble signal can be determined, and the time domain and frequency domain synchronization of the preamble code in the CSS spread spectrum signal can be realized; in addition, the solution in the embodiment of the application does not require The receiver has been doing FFT calculations, which can also save power consumption and calculation time, which can also improve the overall performance of the receiver.
下面将结合附图对本申请各实施例进行详细说明。Hereinafter, each embodiment of the present application will be described in detail with reference to the accompanying drawings.
本申请的一实施例中,参见图2,其示出了本申请实施例提供的一种信号同步方法的流程示意图。如图2所示,该方法可以包括:In an embodiment of the present application, refer to FIG. 2, which shows a schematic flowchart of a signal synchronization method provided in an embodiment of the present application. As shown in Figure 2, the method may include:
S201:接收扩频前导码信号,所述扩频前导码信号包括N个序列,N为大于或等于1的正整数;S201: Receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
需要说明的是,在通信系统中,可以通过发射机发射信号,然后通过接收机接收该信号;而接收机中进行信号解调的前提是需要发现并识别出发射机的preamble码并与之同步。这里,发射机可以位于终端设备中,接收机可以位于基站中,但是本申请实施例不作具体限定。It should be noted that in a communication system, a signal can be transmitted through the transmitter and then received by the receiver; and the premise of signal demodulation in the receiver is to find and identify the transmitter’s preamble code and synchronize with it. . Here, the transmitter may be located in the terminal device, and the receiver may be located in the base station, but the embodiment of the present application does not specifically limit it.
示例性地,发射信号可以用下述的式(2)表示,如下所示,Exemplarily, the transmitted signal can be represented by the following formula (2), as shown below,
s(t)=exp(j*2π*f CSS*t+phi)          (2) s(t)=exp(j*2π*f CSS *t+phi) (2)
其中,phi表示初始相位,phi的取值一般可以为0;f CSS为调制信号的频率,f css的取值可以由扩频因子(Spreading Factor,SF)和带宽(Band Width,BW)来确定,具体地,f CSS=2^SF/BW*t。 Among them, phi represents the initial phase, and the value of phi can generally be 0; f CSS is the frequency of the modulated signal, and the value of f css can be determined by the spreading factor (SF) and bandwidth (Band Width, BW) , Specifically, f CSS = 2^SF/BW*t.
如此,扩频前导码信号可以使用如上产生的chirp信号,假定周期为0, 那么该扩频前导码信号在MATLAB仿真中所得到的信号示例如图3所示。在图3中,水平坐标轴表示时间(用Time表示),单位用秒(s)表示;垂直坐标轴表示频率(用Frequency表示),单位用赫兹(Hz)表示。In this way, the spread-spectrum preamble signal can use the chirp signal generated as above, and assuming that the period is 0, the signal example obtained by the spread-spectrum preamble signal in MATLAB simulation is shown in FIG. 3. In Figure 3, the horizontal axis represents time (indicated by Time), and the unit is represented by seconds (s); the vertical axis represents frequency (indicated by Frequency), and the unit is represented by hertz (Hz).
还需要说明的是,由于preamble码可以由N个长度为2^SF的重复序列组成;也就是说,扩频前导码信号包括有N个序列,而且每个序列包括有M个点;其中,N为大于或等于1的正整数,M为大于或等于1的正整数。本申请实施例中,M的取值可以为2^SF。It should also be noted that the preamble code can be composed of N repetitive sequences with a length of 2^SF; that is, the spread spectrum preamble signal includes N sequences, and each sequence includes M points; among them, N is a positive integer greater than or equal to 1, and M is a positive integer greater than or equal to 1. In the embodiment of the present application, the value of M may be 2^SF.
进一步地,在一些实施例中,在S201之后,该方法还可以包括:Further, in some embodiments, after S201, the method may further include:
按照预设采样率对接收到的扩频前导码信号进行采样处理,将采样后的扩频前导码信号确定为所述扩频前导码信号。Perform sampling processing on the received spread-spectrum preamble signal according to a preset sampling rate, and determine the sampled spread-spectrum preamble signal as the spread-spectrum preamble signal.
需要说明的是,预设采样率表示预先设定的对接收到的扩频前导码信号进行采样处理的采样频率。其中,预设采样率根据实际情况进行设定,本申请实施例中的预设采样率通常为高采样率,一般可以是两倍采样率,也可以是四倍采样率,但是本申请实施例不作具体限定。It should be noted that the preset sampling rate represents a preset sampling frequency for sampling the received spread spectrum preamble signal. The preset sampling rate is set according to actual conditions. The preset sampling rate in the embodiment of the present application is usually a high sampling rate, and generally can be twice the sampling rate or four times the sampling rate. However, in the embodiments of the present application, There is no specific limitation.
这样,可以按照预设采样率(比如两倍采样率)对接收到的扩频前导码信号进行采样处理,将采样后的扩频前导码信号确定为扩频前导码信号,然后对其进行后续的第一相关处理和第二相关处理计算。In this way, the received spread-spectrum preamble signal can be sampled according to the preset sampling rate (such as twice the sampling rate), and the sampled spread-spectrum preamble signal can be determined as the spread-spectrum preamble signal, and then follow-up The first correlation processing and the second correlation processing are calculated.
S202:对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果;S202: Perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
需要说明的是,扩频前导码信号为chirp信号,本地信号也为chirp信号。具体地,该chirp信号为up chirp信号;其中,如图3所示,对于扩频前导码信号来说,该频率是从0到12×10 4逐渐上升的up过程,故可以将其称为up chirp信号。 It should be noted that the spread spectrum preamble signal is a chirp signal, and the local signal is also a chirp signal. Specifically, the chirp signal is an up chirp signal; among them, as shown in Figure 3, for the spread spectrum preamble signal, the frequency is an up process that gradually rises from 0 to 12×10 4, so it can be called up chirp signal.
还需要说明的是,在获取到扩频前导码信号的N个序列之后,可以分别将每个序列与本地信号进行第一相关处理,从而能够确定出扩频前导码信号对应的N个第一处理结果。It should also be noted that after obtaining the N sequences of the spread-spectrum preamble signal, each sequence can be subjected to the first correlation processing with the local signal respectively, so that the N first-correlation processing corresponding to the spread-spectrum preamble signal can be determined. process result.
具体地,在一些实施例中,对于S202来说,所述对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果,可以包括:Specifically, in some embodiments, for S202, the first correlation processing is performed on each sequence in the spread-spectrum preamble signal with a local signal, and the N corresponding to the spread-spectrum preamble signal are determined. The first processing result may include:
对所述扩频前导码信号中每个序列分别与本地信号进行共轭相乘,得到N个乘积信号;Conjugate multiplication of each sequence in the spread spectrum preamble signal with a local signal to obtain N product signals;
对所述N个乘积信号中每个乘积信号分别进行FFT运算,得到N个FFT结果;FFT operation is performed on each of the N product signals separately to obtain N FFT results;
将所得到的N个FFT结果确定为所述扩频前导码信号对应的N个第一处理结果。The obtained N FFT results are determined as the N first processing results corresponding to the spread spectrum preamble signal.
需要说明的是,对扩频前导码信号中每个序列分别与本地信号进行第一相关处理,具体可以是指先对扩频前导码信号中每个序列分别与本地信号进行共轭相乘,以得到N个乘积信号;然后再对这N个乘积信号中每个乘积信号分别进行FFT运算,从而得到N个FFT结果。It should be noted that the first correlation processing is performed on each sequence in the spread-spectrum preamble signal with the local signal. Specifically, it may mean that each sequence in the spread-spectrum preamble signal is conjugate multiplied with the local signal, respectively. Obtain N product signals; and then perform FFT operations on each of the N product signals separately to obtain N FFT results.
还需要说明的是,针对N个乘积信号,每个乘积信号中可以包括有M个点,具体通过对每个乘积信号所包括的M个点进行FFT运算,从而可以得到每个乘积信号对应的FFT结果,如此能够得到N个FFT结果,也就获得了扩频前导码信号对应的N个第一处理结果。It should also be noted that for N product signals, each product signal can include M points. Specifically, by performing FFT operation on the M points included in each product signal, the corresponding value of each product signal can be obtained. FFT results, so that N FFT results can be obtained, and N first processing results corresponding to the spread spectrum preamble signal are also obtained.
S203:对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果;S203: Perform second correlation processing on the two first processing results before and after among the N first processing results and the local signal, and determine a second processing result corresponding to the spread-spectrum preamble signal;
需要说明的是,在获取到N个第一处理结果之后,可以将前后两个第一处理结果与本地信号进行第二相关处理,,从而能够确定出扩频前导码信号对应的第二处理结果。It should be noted that after the N first processing results are obtained, the two first processing results before and after the local signal can be subjected to second correlation processing, so that the second processing result corresponding to the spread spectrum preamble signal can be determined .
具体地,在一些实施例中,对于S203来说,所述对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果,可以包括:Specifically, in some embodiments, for S203, the two first processing results before and after the N first processing results are subjected to second correlation processing with the local signal to determine the spread spectrum The second processing result corresponding to the preamble signal may include:
对所得到的N个FFT结果中的前后两个FFT结果在相同位置与所述本地信号进行共轭相乘,并对相乘后的结果进行累加处理,得到相关结果;Performing conjugate multiplication on the front and back two FFT results of the obtained N FFT results with the local signal at the same position, and accumulating the multiplied results to obtain a correlation result;
将所得到的相关结果确定为所述扩频前导码信号对应的第二处理结果。The obtained correlation result is determined as the second processing result corresponding to the spread spectrum preamble signal.
需要说明的是,对N个第一处理结果中的前后两个第一处理结果与本地信号进行第二相关处理,具体可以是指先对所得到的N个FFT结果中的前后两个FFT结果在相同位置与本地信号进行共轭相乘,然后再对相乘后的结果进行累加处理,如此能够得到相关结果,也就获得了扩频前导码信号对应的第二处理结果。It should be noted that the second correlation processing is performed on the two first processing results before and after the local signal among the N first processing results. Specifically, it may mean that the two FFT results before and after the obtained N FFT results are The same position is conjugate multiplied with the local signal, and then the multiplied result is accumulated and processed, so that the correlation result can be obtained, and the second processing result corresponding to the spread-spectrum preamble signal is obtained.
S204:若所述第二处理结果大于预设阈值,则在相关窗口内查询所述第二处理结果的最大值;S204: If the second processing result is greater than a preset threshold, query the maximum value of the second processing result in a relevant window;
需要说明的是,预设阈值是预先设定的用于衡量所接收到的扩频前导码信号是否为有用信号的判定值。其中,预设阈值的取值根据实际情况进行设定,本申请实施例不作具体限定。It should be noted that the preset threshold is a predetermined value used to measure whether the received spread-spectrum preamble signal is a useful signal. Wherein, the value of the preset threshold is set according to actual conditions, and the embodiment of the present application does not specifically limit it.
还需要说明的是,相关窗口表征所述扩频前导码中每个序列进行第一相关处理所对应的滑动窗口。也就是说,针对扩频前导码信号中每个序列分别与本地信号进行共轭相乘后,针对乘积信号进行FFT运算的滑动窗口。这里,滑动窗口的长度与序列长度有关;在本申请实施例中,滑动窗口的长度可以等于序列长度,比如每个序列包括有2^SF个点,那么滑动窗口的长度也为2^SF个点。如此,只有当该滑动窗口所对应的起始时间和结束时间是正确的,这时候所得到的第二处理结果为最大值。It should also be noted that the correlation window represents a sliding window corresponding to the first correlation processing performed on each sequence in the spread spectrum preamble. That is to say, after each sequence in the spread spectrum preamble signal is conjugate multiplied by the local signal, the sliding window of the FFT operation is performed on the product signal. Here, the length of the sliding window is related to the sequence length; in the embodiment of the present application, the length of the sliding window may be equal to the sequence length, for example, each sequence includes 2^SF points, then the length of the sliding window is also 2^SF points point. In this way, only when the start time and end time corresponding to the sliding window are correct, the second processing result obtained at this time is the maximum value.
这样,在获取到第二处理结果之后,可以将第二处理结果与预设阈值进行比较,根据比较的结果来确定所接收到的扩频前导码信号是否为有用信号,从而确定是否需要执行在相关窗口内查询所述第二处理结果的最大值的步骤。因此,在一些实施例中,该方法还可以包括:In this way, after the second processing result is obtained, the second processing result can be compared with a preset threshold, and according to the comparison result, it can be determined whether the received spread spectrum preamble signal is a useful signal, so as to determine whether it is necessary to execute the The step of querying the maximum value of the second processing result in the relevant window. Therefore, in some embodiments, the method may further include:
判断所述第二处理结果是否大于预设阈值;Judging whether the second processing result is greater than a preset threshold;
若所述第二处理结果大于预设阈值,则确定所述扩频前导码信号为有用信号,继续执行所述在相关窗口内查询所述第二处理结果的最大值的步骤;If the second processing result is greater than the preset threshold, determining that the spread-spectrum preamble signal is a useful signal, and continuing to perform the step of querying the maximum value of the second processing result in the relevant window;
若所述第二处理结果不大于预设阈值,则确定所述扩频前导码信号为非有用信号,停止执行所述在相关窗口内查询所述第二处理结果的最大值的步骤。If the second processing result is not greater than the preset threshold, it is determined that the spread spectrum preamble signal is a non-useful signal, and the step of querying the maximum value of the second processing result in the relevant window is stopped.
需要说明的是,通过将第二处理结果与预设阈值进行比较,以确定所接收到的扩频前导码信号是否为有用信号。具体地,如果第二处理结果大于预设阈值,表明了所接收到的扩频前导码信号为有用信号,这时候可以继续执行图2所示的流程,即需要继续执行在相关窗口内查询所述第二处理结果的最大值的步骤;如果第二处理结果不大于预设阈值,表明了所接收到的扩频前导码信号为非有用信号,这时候不需要继续执行图2所示的流程,即不需要执行在相关窗口内查询所述第二处理结果的最大值的步骤。It should be noted that, by comparing the second processing result with the preset threshold, it is determined whether the received spread spectrum preamble signal is a useful signal. Specifically, if the second processing result is greater than the preset threshold, it indicates that the received spread-spectrum preamble signal is a useful signal. At this time, the process shown in FIG. 2 can be continued, that is, the query in the relevant window needs to be continued. The step of the maximum value of the second processing result; if the second processing result is not greater than the preset threshold, it indicates that the received spread spectrum preamble signal is not a useful signal. At this time, there is no need to continue the process shown in Figure 2 , That is, there is no need to perform the step of querying the maximum value of the second processing result in the relevant window.
S205:基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的同步跟踪。S205: Determine synchronization information of the spread spectrum preamble signal based on the maximum value, and implement synchronization tracking of the spread spectrum preamble signal according to the synchronization information.
需要说明的是,当第二处理结果大于预设阈值时,这时候可以查询得到第二处理结果的最大值;根据该最大值,可以确定出扩频前导码信号的同步信息,从而实现了对扩频前导码信号的同步跟踪。It should be noted that when the second processing result is greater than the preset threshold, the maximum value of the second processing result can be queried at this time; according to the maximum value, the synchronization information of the spread spectrum preamble signal can be determined, thereby realizing the Synchronous tracking of spread-spectrum preamble signals.
本申请实施例中,对于扩频码信号的同步跟踪来说,同步跟踪包括时间同步跟踪和频率同步跟踪。另外,对于时间同步跟踪和频率同步跟踪来说,两者是并行处理的,并不存在先后之分。In the embodiment of the present application, for the synchronization tracking of spreading code signals, the synchronization tracking includes time synchronization tracking and frequency synchronization tracking. In addition, for time synchronization tracking and frequency synchronization tracking, the two are processed in parallel, and there is no priority.
具体地,在一些实施例中,对于频率同步跟踪来说,所述基于所述最大值,确定所述扩频前导码信号的同步信息,可以包括:Specifically, in some embodiments, for frequency synchronization tracking, the determining the synchronization information of the spread spectrum preamble signal based on the maximum value may include:
根据所述最大值,确定所述最大值对应的时间值;Determine the time value corresponding to the maximum value according to the maximum value;
根据所述时间值进行小数倍频偏估计,得到频偏估计值;Perform a fractional multiple frequency offset estimation according to the time value to obtain an estimated value of the frequency offset;
根据所述频偏估计值,对所述扩频前导码信号进行频率同步跟踪。Perform frequency synchronization tracking on the spread spectrum preamble signal according to the estimated value of the frequency offset.
需要说明的是,由于在对接收到的扩频前导码信号进行相关处理之前,还需要对该扩频前导码信号进行采样处理,而且该采样处理是按照高采样率执行的,通常为两倍采样率或四倍采样率,这时候的频率补偿需要进行小数倍频偏估计。It should be noted that before performing correlation processing on the received spread-spectrum preamble signal, the spread-spectrum preamble signal needs to be sampled, and the sampling processing is performed at a high sampling rate, usually twice Sampling rate or quadruple sampling rate. In this case, the frequency compensation requires fractional frequency offset estimation.
还需要说明的是,对于频率同步跟踪来说,如果两者的频率不一致,这时候可以根据查询到的最大值确定出该最大值对应的时间值;根据该时间值进行小数倍频偏估计,从而能够得到频偏估计值;根据该频偏估计值对扩频前导码信号进行频率补偿,也就实现了扩频前导码信号的频率同步跟踪。It should also be noted that for frequency synchronization tracking, if the frequencies of the two are inconsistent, the time value corresponding to the maximum value can be determined according to the maximum value obtained at this time; the fractional frequency offset estimation is performed according to the time value Therefore, the frequency offset estimation value can be obtained; frequency compensation is performed on the spread spectrum preamble signal according to the frequency offset estimation value, and the frequency synchronization tracking of the spread spectrum preamble signal is realized.
具体地,在一些实施例中,对于时间同步跟踪来说,所述基于所述最大值,确定所述扩频前导码信号的同步信息,包括:Specifically, in some embodiments, for time synchronization tracking, the determining the synchronization information of the spread spectrum preamble signal based on the maximum value includes:
根据所述最大值,确定所述最大值对应的序列;Determine the sequence corresponding to the maximum value according to the maximum value;
根据所确定的序列,获取所述序列的起始时间和结束时间;Obtaining the start time and end time of the sequence according to the determined sequence;
根据所述起始时间和所述结束时间,对所述扩频前导码信号进行时间同步跟踪。Perform time synchronization tracking on the spread spectrum preamble signal according to the start time and the end time.
需要说明的是,对于时间同步跟踪来说,根据所查询到的最大值确定出该最大值对应的序列;然后根据所确定的序列,获取到该序列的起始时间和 结束时间;如此根据该起始时间和结束时间,也就实现了扩频前导码信号的时间同步跟踪。It should be noted that for time synchronization tracking, the sequence corresponding to the maximum value is determined according to the maximum value that is queried; then the start time and end time of the sequence are obtained according to the determined sequence; The start time and end time also realize the time synchronization tracking of the spread spectrum preamble signal.
示例性地,假定所接收到的扩频前导码信号如图3所示,那么在将所接收到的扩频前导码信号与本地的chirp信号进行共轭相乘之后,如果两者频率完全一致,这时候理想状态下在MATLAB仿真中所得到的仿真结果如图4所示;对应的,其FFT结果如图5所示,其中,水平坐标轴表示频率,垂直坐标轴表示分量值(即FFT结果);从图5可以看出,FFT结果的所有信号全部为直流(Direct Current,DC)分量,此时可以判断出发射机与接收机之间的载波频率同步;如果由于多普勒效应,两者频率有所差别,这时候理想状态下在MATLAB仿真中所得到的仿真结果如图6所示;对应的,其FFT结果如图7所示,从图7可以看出,FFT结果中存在有峰值,此时可以判断出发射机与接收机之间的载波频率不同步,而且该峰值所在的频率即为两者之间的载波频率差。针对发射机与接收机之间的载波频率不同步的情况,这时候可以根据本申请实施例的信号同步方法,以实现两者之间的载波频率同步跟踪。Exemplarily, assuming that the received spread-spectrum preamble signal is shown in Figure 3, after the received spread-spectrum preamble signal and the local chirp signal are conjugate multiplied, if the two frequencies are completely consistent At this time, the simulation results obtained in the MATLAB simulation under ideal conditions are shown in Figure 4; correspondingly, the FFT results are shown in Figure 5, where the horizontal axis represents the frequency, and the vertical axis represents the component value (ie FFT As can be seen from Figure 5, all signals of the FFT result are direct current (DC) components. At this time, it can be judged that the carrier frequency between the transmitter and the receiver is synchronized; if it is due to the Doppler effect, The frequencies of the two are different. At this time, the simulation results obtained in MATLAB simulation under ideal conditions are shown in Figure 6; correspondingly, the FFT results are shown in Figure 7. As can be seen from Figure 7, there are FFT results. There is a peak. At this time, it can be judged that the carrier frequency between the transmitter and the receiver is not synchronized, and the frequency at which the peak is located is the carrier frequency difference between the two. In view of the situation that the carrier frequency between the transmitter and the receiver is not synchronized, at this time, the signal synchronization method according to the embodiment of the present application can be used to realize the carrier frequency synchronization tracking between the two.
本实施例提供了一种信号同步方法,通过接收扩频前导码信号,该扩频前导码信号包括N个序列,N为大于或等于1的正整数;对该扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定扩频前导码信号对应的N个第一处理结果;对N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定扩频前导码信号对应的第二处理结果;若第二处理结果大于预设阈值,则在相关窗口内查询第二处理结果的最大值;基于该最大值,确定扩频前导码信号的同步信息,并根据所述同步信息实现对扩频前导码信号的同步跟踪;这样,通过将接收到的扩频前导码信号与本地信号进行互相关处理,并根据互相关处理后所得到的峰值进行判断,从而能够确定出该扩频前导码信号的同步信息,可以实现CSS扩频信号中preamble码的时域和频域同步;另外,本申请实施例的方案不需要接收机一直做FFT运算,还可以节省功耗和运算时间,从而还能够提升接收机的整体性能。This embodiment provides a signal synchronization method by receiving a spread-spectrum preamble signal. The spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1, and each of the spread-spectrum preamble signals The sequence is first correlated with the local signal to determine the N first processing results corresponding to the spread-spectrum preamble signal; the two first processing results before and after the N first processing results and the local signal are second Correlation processing, determine the second processing result corresponding to the spread spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; determine the spread spectrum preamble based on the maximum value The synchronization information of the signal and the synchronization tracking of the spread spectrum preamble signal according to the synchronization information; in this way, the received spread spectrum preamble signal and the local signal are subjected to cross-correlation processing, and the results obtained after the cross-correlation processing To determine the synchronization information of the spread-spectrum preamble signal, the time-domain and frequency-domain synchronization of the preamble code in the CSS spread-spectrum signal can be realized; in addition, the solution in the embodiment of the present application does not require the receiver to always do FFT operation can also save power consumption and operation time, which can also improve the overall performance of the receiver.
本申请的另一实施例中,基于前述实施例相同的发明构思,参见图8,其示出了本申请实施例提供的一种信号同步方法的详细流程示意图。如图8所示,该详细流程可以包括:In another embodiment of the present application, based on the same inventive concept as the foregoing embodiment, refer to FIG. 8, which shows a detailed flowchart of a signal synchronization method provided by an embodiment of the present application. As shown in Figure 8, the detailed process may include:
S801:接收扩频前导码信号,扩频前导码信号包括N个序列,N为大于或等于1的正整数;S801: Receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
S802:按照预设采样率对接收到的扩频前导码信号进行采样处理,将采样后的扩频前导码信号确定为所述扩频前导码信号;S802: Perform sampling processing on the received spread-spectrum preamble signal according to a preset sampling rate, and determine the sampled spread-spectrum preamble signal as the spread-spectrum preamble signal;
需要说明的是,在发射机发射信号之后,通过接收机来接收扩频前导码信号,该扩频前导码信号可以为up chirp信号。其中,由于preamble码可以由N个长度为2^SF的重复序列组成;也就是说,扩频前导码信号包括有N个序列,而且每个序列包括有M个点;其中,N为大于或等于1的正整数,M为大于或等于1的正整数。本申请实施例中,M的取值可以为2^SF。It should be noted that, after the transmitter transmits the signal, the receiver receives the spread-spectrum preamble signal, and the spread-spectrum preamble signal may be an up chirp signal. Among them, because the preamble code can be composed of N repetitive sequences with a length of 2^SF; that is, the spread spectrum preamble signal includes N sequences, and each sequence includes M points; where N is greater than or A positive integer equal to 1, and M is a positive integer greater than or equal to 1. In the embodiment of the present application, the value of M may be 2^SF.
这样,按照预设采样率(比如两倍采样率)对接收到的扩频前导码信号 进行采样处理,将采样后的扩频前导码信号确定为扩频前导码信号,然后对其进行后续的相关处理计算。In this way, the received spread-spectrum preamble signal is sampled according to the preset sampling rate (for example, twice the sampling rate), and the sampled spread-spectrum preamble signal is determined as the spread-spectrum preamble signal, and then the follow-up is performed on it. Related processing calculations.
S803:对所述扩频前导码信号中每个序列分别与本地的chirp信号进行共轭相乘,得到N个乘积信号;S803: Perform conjugate multiplication of each sequence in the spread spectrum preamble signal with a local chirp signal to obtain N product signals;
S804:对所述N个乘积信号中每个乘积信号分别进行FFT运算,得到N个FFT结果;S804: Perform an FFT operation on each product signal of the N product signals to obtain N FFT results;
需要说明的是,在获取到扩频前导码信号的N个序列之后,对扩频前导码信号中每个序列分别与本地的chirp信号进行第一相关处理,具体可以是指先对扩频前导码信号中每个序列分别与本地的chirp信号进行共轭相乘,以得到N个乘积信号;然后再对这N个乘积信号中每个乘积信号分别进行FFT运算,从而可以得到N个FFT结果。It should be noted that, after obtaining the N sequences of the spread spectrum preamble signal, each sequence in the spread spectrum preamble signal is subjected to the first correlation processing with the local chirp signal. Specifically, it may refer to the first correlation process of the spread spectrum preamble signal. Each sequence in the signal is conjugate multiplied with the local chirp signal to obtain N product signals; then, each of the N product signals is subjected to FFT operation separately to obtain N FFT results.
具体地,对扩频前导码信号中每个序列分别与本地的chirp信号进行共轭相乘,以得到N个乘积信号;其对应的代码如下,Specifically, each sequence in the spread spectrum preamble signal is conjugate multiplied with the local chirp signal to obtain N product signals; the corresponding codes are as follows:
for i=0:N-1for i = 0: N-1
decoder(i+1:i+2^SF)=preamble(i+1:i+2^SF).*conj(local);decoder(i+1:i+2^SF)=preamble(i+1:i+2^SF).*conj(local);
endend
具体地,对N个乘积信号中每个乘积信号分别进行FFT运算,以得到N个FFT结果;其对应的代码如下,Specifically, the FFT operation is performed on each of the N product signals to obtain N FFT results; the corresponding codes are as follows:
for k=0:N-1for k = 0: N-1
DECODER(k)=FFT(decoder(k+1:k+2^SF));DECODER(k)=FFT(decoder(k+1:k+2^SF));
endend
其中,preamble(i+1:i+2^SF)表示所接收到的扩频前导码信号中第i个序列,conj(local)表示本地的chirp信号,decoder(i+1:i+2^SF)表示第i个序列对应的乘积信号,DECODER(k)表示第k个乘积信号对应的FFT结果;由于k的取值为0~N-1,如此可以得到N个FFT结果。Among them, preamble(i+1:i+2^SF) represents the i-th sequence in the received spread spectrum preamble signal, conj(local) represents the local chirp signal, decoder(i+1:i+2^ SF) represents the product signal corresponding to the i-th sequence, and DECODER(k) represents the FFT result corresponding to the k-th product signal; since the value of k is 0 to N-1, N FFT results can be obtained in this way.
S805:对所得到的N个FFT结果中的前后两个FFT结果在相同位置与本地的chirp信号进行共轭相乘,并对相乘后的结果进行累加处理,得到相关结果;S805: Perform conjugate multiplication on the front and back two FFT results of the obtained N FFT results with the local chirp signal at the same position, and perform accumulation processing on the multiplied results to obtain a correlation result;
需要说明的是,在得到N个FFT结果之后,对N个FFT结果中的前后两个FFT结果与本地的chirp信号进行第二相关处理,具体可以是指先对所得到的N个FFT结果中的前后两个FFT结果在相同位置与本地信号进行共轭相乘,然后再对相乘后的结果进行累加处理,从而可以得到相关结果。It should be noted that after the N FFT results are obtained, the second correlation processing is performed on the two FFT results before and after the N FFT results and the local chirp signal. Specifically, it can refer to the first correlation of the obtained N FFT results. The two FFT results before and after are conjugate multiplied with the local signal at the same position, and then the multiplied results are accumulated and processed, so that the correlation result can be obtained.
具体地,假定N=4,如果2^SF点的序列所选择的是正确的起始时间和结束时间,这时候将4个FFT的计算结果进行累加,得到的相关结果中,该峰值是最大的,即该相关结果为最大值;然而,如果2^SF点的序列所选择的是错误的起始时间和结束时间,即所选择的2^SF的初始和结束时间与序列不一致,这时候将4个FFT的计算结果进行累加,可以得到两个峰值,且这两个峰值均小于正确情况下的峰值。Specifically, assuming N=4, if the sequence of 2^SF points selects the correct start time and end time, the calculation results of the 4 FFTs are accumulated at this time, and the peak value is the largest among the correlation results obtained. , That is, the correlation result is the maximum value; however, if the sequence of 2^SF points selects the wrong start time and end time, that is, the initial and end time of the selected 2^SF are inconsistent with the sequence, at this time The calculation results of the 4 FFTs are accumulated, and two peaks can be obtained, and the two peaks are smaller than the peak under the correct situation.
S806:若所述相关结果大于预设阈值,则在相关窗口内查询所述相关结果的最大值;S806: If the correlation result is greater than the preset threshold, query the maximum value of the correlation result in the correlation window;
S807:基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的时间同步跟踪和频率同步跟踪。S807: Determine synchronization information of the spread spectrum preamble signal based on the maximum value, and implement time synchronization tracking and frequency synchronization tracking of the spread spectrum preamble signal according to the synchronization information.
需要说明的是,预设阈值是预先设定的用于衡量所接收到的扩频前导码信号是否为有用信号的判定值。其中,预设阈值的取值根据实际情况进行设定,本申请实施例不作具体限定。这样,在获取到相关结果之后,可以将相关结果与预设阈值进行比较,根据比较的结果来确定所接收到的扩频前导码信号是否为有用信号,从而确定是否需要执行S806,即是否需要在相关窗口内查询所述相关结果的最大值的步骤。It should be noted that the preset threshold is a predetermined value used to measure whether the received spread-spectrum preamble signal is a useful signal. Wherein, the value of the preset threshold is set according to actual conditions, and the embodiment of the present application does not specifically limit it. In this way, after the correlation result is obtained, the correlation result can be compared with the preset threshold, and according to the comparison result, it can be determined whether the received spread spectrum preamble signal is a useful signal, so as to determine whether S806 needs to be executed, that is, whether it is needed. The step of querying the maximum value of the correlation result in the correlation window.
还需要说明的是,当相关结果大于预设阈值时,这时候继续搜索一段时间,可以在该相关窗口内查询出相关结果的最大值;根据该最大值,可以确定出扩频前导码信号的同步信息,从而实现了对扩频前导码信号的同步跟踪。It should also be noted that when the correlation result is greater than the preset threshold, the search continues for a period of time, and the maximum value of the correlation result can be queried in the correlation window; according to the maximum value, the spread spectrum preamble signal can be determined Synchronous information, thus realizing the synchronous tracking of the spread spectrum preamble signal.
具体地,由于在对接收到的扩频前导码信号进行相关处理之前,还需要对该扩频前导码信号进行采样处理,而且该采样处理是按照高采样率执行的,通常为两倍采样率或四倍采样率,这时候的频率补偿需要进行小数倍频偏估计。也就是说,对于频率同步跟踪来说,如果两者的频率不一致,这时候可以根据查询到的最大值确定出该最大值对应的时间值;根据该时间值进行小数倍频偏估计,从而能够得到频偏估计值;根据该频偏估计值对扩频前导码信号进行频率补偿,也就实现了扩频前导码信号的频率同步跟踪。Specifically, because before performing correlation processing on the received spread-spectrum preamble signal, the spread-spectrum preamble signal needs to be sampled, and the sampling processing is performed at a high sampling rate, usually twice the sampling rate. Or quadruple sampling rate. In this case, the frequency compensation requires fractional frequency offset estimation. That is to say, for frequency synchronization tracking, if the frequencies of the two are inconsistent, the time value corresponding to the maximum value can be determined according to the maximum value obtained at this time; the fractional frequency offset is estimated according to the time value, thereby The frequency offset estimation value can be obtained; frequency compensation is performed on the spread spectrum preamble signal according to the frequency offset estimation value, and the frequency synchronization tracking of the spread spectrum preamble signal is realized.
另外,对于时间同步跟踪来说,根据所查询到的最大值确定出该最大值对应的序列;然后根据所确定的序列,获取到该序列的起始时间和结束时间;如此根据该起始时间和结束时间,可以对扩频前导码信号进行时间同步跟踪。也就是说,当相关结果为最大值时,这时候2^SF点的序列所选择的是正确的起始时间和结束时间,从而实现了扩频前导码信号的时间同步跟踪。In addition, for time synchronization tracking, the sequence corresponding to the maximum value is determined according to the maximum value found; then the start time and end time of the sequence are obtained according to the determined sequence; thus according to the start time And the end time, the spread spectrum preamble signal can be time synchronized tracking. That is to say, when the correlation result is the maximum value, the sequence of 2^SF points at this time selects the correct start time and end time, thereby realizing the time synchronization tracking of the spread spectrum preamble signal.
由此可以看出,同步跟踪需要进行较大的运算量,并且需要接收机一直做FFT运算。尤其是跨过前后两个preamble码字符;由于相位的不连续性,这时候与本地的chirp信号进行共轭相乘所得到的结果为分离的两端,即FFT运算之后所得到峰值的频谱会有所干扰,使得峰值会减小,从而对正常判断产生干扰。如图9所示,其示出了本申请实施例提供的一种扩频前导码信号涉及前后两个preamble码字符的仿真结果示意图;对应的,其FFT结果如图10所示,从图10可以看出,该峰值有所降低。It can be seen that synchronous tracking requires a large amount of calculations, and requires the receiver to perform FFT calculations all the time. Especially across the two preamble code characters before and after; due to the discontinuity of the phase, the result of conjugate multiplication with the local chirp signal at this time is the separated ends, that is, the spectrum of the peak obtained after the FFT operation will be If there is interference, the peak value will be reduced, which will interfere with the normal judgment. As shown in FIG. 9, it shows a schematic diagram of the simulation result of a spread spectrum preamble signal related to the two preamble code characters before and after the spread spectrum provided by the embodiment of the application; correspondingly, the FFT result is shown in FIG. It can be seen that the peak value has been reduced.
本申请实施例中,由于本地的chirp信号和接收到的chirp信号字符长度一致,区别只在载波频率上;因此可以将两者做互相关(cross correlation)处理,然后通过互相关处理所得到的峰值进行判断,以得出每个字符的起始时间和结束时间,从而实现时间同步,这时候还可以迅速判断出其对应的2^SF所需要的FFT运算的相关窗口。In the embodiment of this application, since the character length of the local chirp signal and the received chirp signal are the same, the difference is only on the carrier frequency; therefore, the two can be cross-correlation processing, and then the result can be obtained through cross-correlation processing. The peak value is judged to obtain the start time and end time of each character, so as to achieve time synchronization. At this time, it is also possible to quickly determine the relevant window of the FFT operation required by the corresponding 2^SF.
进一步地,当扩频前导码信号中包括有多个preamble码字符时,这时候根据本申请实施例的信号同步方法,将本地的chirp信号和接收到的chirp信号进行互相关之后,所得到的FFT结果如图11所示,从图11可以看出,针对多个preamble码字符,其对应的峰值也有多个。Further, when the spread spectrum preamble signal includes multiple preamble code characters, at this time, according to the signal synchronization method of the embodiment of the present application, after the local chirp signal and the received chirp signal are cross-correlated, the result is The FFT result is shown in Figure 11. It can be seen from Figure 11 that for multiple preamble code characters, there are multiple corresponding peaks.
通过上述实施例,对前述实施例的具体实现进行了详细阐述,从中可以看出,通过前述实施例的技术方案,将本地的chirp信号和接收到的chirp信号进行cross correlation处理,可以迅速确定出每个字符的起始时间和结束时间,并且还可以判断载波频率的差异以进行频率补偿,从而能够确定出该扩频前导码信号的同步信息,实现了CSS扩频信号中preamble码的时域和频域同步;另外,在CSS初期可以大量节省功耗和运算时间,不需要接收机一直做FFT运算,如此根据前后FFT结果来选取FFT中产生峰值最大的滑动窗口,并且通过信号同步方式可以迅速判断出对应的M个点需要进行FFT运算的滑动窗口,从而还能够提升接收机的整体性能。Through the foregoing embodiments, the specific implementation of the foregoing embodiments is described in detail. It can be seen that through the technical solutions of the foregoing embodiments, cross-correlation processing of the local chirp signal and the received chirp signal can quickly determine The start time and end time of each character, and the difference of carrier frequency can be judged for frequency compensation, so that the synchronization information of the spread spectrum preamble signal can be determined, and the time domain of the preamble code in the CSS spread spectrum signal can be realized. Synchronize with the frequency domain; in addition, in the early stage of CSS, it can save a lot of power consumption and computing time. The receiver does not need to perform FFT operations all the time. In this way, the sliding window with the largest peak value in the FFT is selected based on the results of the FFT before and after, and the signal synchronization method It is quickly determined that the corresponding M points require a sliding window for FFT operation, which can also improve the overall performance of the receiver.
本申请的又一实施例中,基于前述实施例相同的发明构思,参见图12,其示出了本申请实施例提供的一种信号同步装置120的组成结构示例,该信号同步装置120可以包括:接收单元1201、处理单元1202、查询单元1203和同步单元1204,其中,In another embodiment of the present application, based on the same inventive concept as the foregoing embodiment, refer to FIG. 12, which shows an example of the composition structure of a signal synchronization device 120 provided by an embodiment of the present application. The signal synchronization device 120 may include : Receiving unit 1201, processing unit 1202, query unit 1203, and synchronization unit 1204, where:
接收单元1201,配置为接收扩频前导码信号,所述扩频前导码信号包括N个序列,N为大于或等于1的正整数;The receiving unit 1201 is configured to receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
处理单元1202,配置为对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果;The processing unit 1202 is configured to perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
处理单元1202,还配置为对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果;The processing unit 1202 is further configured to perform second correlation processing on the two first processing results before and after the N first processing results and the local signal, and determine a second processing result corresponding to the spread spectrum preamble signal ;
查询单元1203,配置为若所述第二处理结果大于预设阈值,则在相关窗口内查询所述第二处理结果的最大值;其中,所述相关窗口表征所述扩频前导码中每个序列进行第一相关处理所对应的滑动窗口;The query unit 1203 is configured to query the maximum value of the second processing result in a correlation window if the second processing result is greater than a preset threshold; wherein, the correlation window represents each of the spread spectrum preambles The sliding window corresponding to the sequence of performing the first correlation processing;
同步单元1204,配置为基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的同步跟踪。The synchronization unit 1204 is configured to determine synchronization information of the spread-spectrum preamble signal based on the maximum value, and implement synchronization tracking of the spread-spectrum preamble signal according to the synchronization information.
在上述方案中,参见图12,信号同步装置120还可以包括确定单元1205和估计单元1206,其中,In the above solution, referring to FIG. 12, the signal synchronization device 120 may further include a determining unit 1205 and an estimation unit 1206, where:
确定单元1205,配置为根据所述最大值,确定所述最大值对应的时间值;The determining unit 1205 is configured to determine a time value corresponding to the maximum value according to the maximum value;
估计单元1206,配置为根据所述时间值进行小数倍频偏估计,得到频偏估计值;The estimation unit 1206 is configured to perform a fractional frequency offset estimation according to the time value to obtain an estimated value of the frequency offset;
同步单元1204,具体配置为根据所述频偏估计值,对所述扩频前导码信号进行频率同步跟踪。The synchronization unit 1204 is specifically configured to perform frequency synchronization tracking on the spread spectrum preamble signal according to the frequency offset estimation value.
在上述方案中,确定单元1205,还配置为根据所述最大值,确定所述最大值对应的序列;以及根据所确定的序列,获取所述序列的起始时间和结束时间;In the above solution, the determining unit 1205 is further configured to determine a sequence corresponding to the maximum value according to the maximum value; and obtain the start time and end time of the sequence according to the determined sequence;
同步单元1204,具体配置为根据所述起始时间和所述结束时间,对所述扩频前导码信号进行时间同步跟踪。The synchronization unit 1204 is specifically configured to perform time synchronization tracking on the spread spectrum preamble signal according to the start time and the end time.
在上述方案中,参见图12,信号同步装置120还可以包括采样单元1207,配置为按照预设采样率对接收到的扩频前导码信号进行采样处理,将采样后 的扩频前导码信号确定为所述扩频前导码信号。In the above solution, referring to FIG. 12, the signal synchronization device 120 may further include a sampling unit 1207 configured to sample the received spread spectrum preamble signal according to a preset sampling rate, and determine the sampled spread spectrum preamble signal Is the spread spectrum preamble signal.
在上述方案中,处理单元1202,具体配置为对所述扩频前导码信号中每个序列分别与本地信号进行共轭相乘,得到N个乘积信号;以及对所述N个乘积信号中每个乘积信号分别进行快速傅里叶变换FFT运算,得到N个FFT结果;以及将所得到的N个FFT结果确定为所述扩频前导码信号对应的N个第一处理结果。In the above solution, the processing unit 1202 is specifically configured to perform conjugate multiplication on each sequence in the spread spectrum preamble signal with a local signal to obtain N product signals; and perform conjugate multiplication on each of the N product signals; Fast Fourier transform FFT operations are performed on the two product signals respectively to obtain N FFT results; and the obtained N FFT results are determined as the N first processing results corresponding to the spread spectrum preamble signal.
在上述方案中,处理单元1202,具体配置为对所得到的N个FFT结果中的前后两个FFT结果在相同位置与所述本地信号进行共轭相乘,并对相乘后的结果进行累加处理,得到相关结果;以及将所得到的相关结果确定为所述扩频前导码信号对应的第二处理结果。In the above solution, the processing unit 1202 is specifically configured to perform conjugate multiplication with the local signal at the same position on the front and back two FFT results among the obtained N FFT results, and accumulate the multiplied results Processing to obtain a correlation result; and determining the obtained correlation result as the second processing result corresponding to the spread spectrum preamble signal.
在上述方案中,参见图12,信号同步装置120还可以包括判断单元1208,配置为判断所述第二处理结果是否大于预设阈值;In the above solution, referring to FIG. 12, the signal synchronization device 120 may further include a determining unit 1208 configured to determine whether the second processing result is greater than a preset threshold;
确定单元1205,还配置为若所述第二处理结果不大于预设阈值,则确定所述扩频前导码信号为非有用信号,停止执行所述在相关窗口内查询所述第二处理结果的最大值的步骤。The determining unit 1205 is further configured to determine that the spread-spectrum preamble signal is not a useful signal if the second processing result is not greater than a preset threshold, and stop performing the query of the second processing result in the relevant window Maximum step.
可以理解地,在本实施例中,“单元”可以是部分电路、部分处理器、部分程序或软件等等,当然也可以是模块,还可以是非模块化的。而且在本实施例中的各组成部分可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It is understandable that, in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., of course, it may also be a module, or it may also be non-modular. Moreover, the various components in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized in the form of hardware or software function module.
所述集成的单元如果以软件功能模块的形式实现并非作为独立的产品进行销售或使用时,可以存储在一个计算机可读取存储介质中,基于这样的理解,本实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或processor(处理器)执行本实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or It is said that the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can A personal computer, server, or network device, etc.) or a processor (processor) executes all or part of the steps of the method described in this embodiment. The aforementioned storage media include: U disk, mobile hard disk, read only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
因此,本实施例提供了一种计算机存储介质,该计算机存储介质存储有信号同步程序,所述信号同步程序被至少一个处理器执行时实现前述实施例中任一项所述的方法。Therefore, this embodiment provides a computer storage medium that stores a signal synchronization program that implements the method described in any one of the foregoing embodiments when the signal synchronization program is executed by at least one processor.
基于上述信号同步装置120的组成以及计算机存储介质,参见图13,其示出了本申请实施例提供的信号同步装置120的具体硬件结构示例,可以包括:通信接口1301、存储器1302和处理器1303;各个组件通过总线系统1304耦合在一起。可理解,总线系统1304用于实现这些组件之间的连接通信。总线系统1304除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图13中将各种总线都标为总线系统1304。其中,通信接口1301,配置为在与其他外部网元之间进行收发信息过程中,信 号的接收和发送;Based on the composition of the above-mentioned signal synchronization device 120 and the computer storage medium, refer to FIG. 13, which shows an example of the specific hardware structure of the signal synchronization device 120 provided by the embodiment of the present application, which may include: a communication interface 1301, a memory 1302, and a processor 1303 ; The various components are coupled together through the bus system 1304. It can be understood that the bus system 1304 is used to implement connection and communication between these components. In addition to the data bus, the bus system 1304 also includes a power bus, a control bus, and a status signal bus. However, for clarity of description, various buses are marked as the bus system 1304 in FIG. 13. Among them, the communication interface 1301 is configured to receive and send signals in the process of sending and receiving information with other external network elements;
存储器1302,配置为存储能够在处理器1303上运行的计算机程序;The memory 1302 is configured to store a computer program that can run on the processor 1303;
处理器1303,配置为在运行所述计算机程序时,执行:The processor 1303 is configured to execute: when running the computer program:
接收扩频前导码信号,所述扩频前导码信号包括N个序列,N为大于或等于1的正整数;Receiving a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1;
对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果;Perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果;Performing second correlation processing on two first processing results before and after the N first processing results and the local signal to determine a second processing result corresponding to the spread-spectrum preamble signal;
若所述第二处理结果大于预设阈值,则在相关窗口内查询所述第二处理结果的最大值;其中,所述相关窗口表征所述扩频前导码中每个序列进行第一相关处理所对应的滑动窗口;If the second processing result is greater than the preset threshold, query the maximum value of the second processing result in a correlation window; wherein, the correlation window represents that each sequence in the spread spectrum preamble is subjected to the first correlation processing The corresponding sliding window;
基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的同步跟踪。Based on the maximum value, the synchronization information of the spread-spectrum preamble signal is determined, and synchronization tracking of the spread-spectrum preamble signal is realized according to the synchronization information.
可以理解,本申请实施例中的存储器1302可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请所描述的系统和方法的存储器1302旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1302 in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), and electrically available Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), Synchronous Link Dynamic Random Access Memory (Synchlink DRAM, SLDRAM) And Direct Rambus RAM (DRRAM). The memory 1302 of the system and method described in this application is intended to include, but is not limited to, these and any other suitable types of memory.
而处理器1303可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1303中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1303可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位 于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1302,处理器1303读取存储器1302中的信息,结合其硬件完成上述方法的步骤。The processor 1303 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 1303 or instructions in the form of software. The aforementioned processor 1303 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory 1302, and the processor 1303 reads the information in the memory 1302, and completes the steps of the foregoing method in combination with its hardware.
可以理解的是,本申请描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in this application can be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing equipment (DSP Device, DSPD), programmable Logic device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, and others for performing the functions described in this application Electronic unit or its combination.
对于软件实现,可通过执行本申请所述功能的模块(例如过程、函数等)来实现本申请所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the technology described in this application can be implemented through modules (for example, procedures, functions, etc.) that perform the functions described in this application. The software codes can be stored in the memory and executed by the processor. The memory can be implemented in the processor or external to the processor.
可选地,作为另一个实施例,处理器1303还配置为在运行所述计算机程序时,执行前述实施例中任一项所述的方法。Optionally, as another embodiment, the processor 1303 is further configured to execute the method described in any one of the foregoing embodiments when the computer program is running.
需要说明的是,在本申请中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this application, the terms "including", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements , But also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the foregoing embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in the several method embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments.
本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in the several product embodiments provided in this application can be combined arbitrarily without conflict to obtain new product embodiments.
本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in the several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain a new method embodiment or device embodiment.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
工业实用性Industrial applicability
本申请实施例中,首先接收扩频前导码信号,该扩频前导码信号包括N个序列,N为大于或等于1的正整数;然后对该扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定扩频前导码信号对应的N个第一处理结果;再对N个第一处理结果中的前后两个第一处理结果与所述本地信号 进行第二相关处理,确定扩频前导码信号对应的第二处理结果;若第二处理结果大于预设阈值,则在相关窗口内查询第二处理结果的最大值;最后基于该最大值,确定扩频前导码信号的同步信息,并根据所述同步信息实现对扩频前导码信号的同步跟踪;这样,通过将接收到的扩频前导码信号与本地信号进行互相关处理,并根据互相关处理后所得到的峰值进行判断,从而能够确定出该扩频前导码信号的同步信息,可以实现CSS扩频信号中preamble码的时域和频域同步;另外,本申请实施例的方案不需要接收机一直做快速傅里叶变换(Fast Fourier Transform,FFT)的运算,还可以节省功耗和运算时间,从而还能够提升接收机的整体性能。In the embodiment of this application, the spread spectrum preamble signal is first received. The spread spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1. Then, each sequence in the spread spectrum preamble signal is connected to the local Perform first correlation processing on the signal to determine N first processing results corresponding to the spread-spectrum preamble signal; then perform second correlation processing on the two first processing results before and after the N first processing results and the local signal, Determine the second processing result corresponding to the spread-spectrum preamble signal; if the second processing result is greater than the preset threshold, query the maximum value of the second processing result in the correlation window; finally, based on the maximum value, determine the value of the spread-spectrum preamble signal Synchronization information, and realize synchronization tracking of spread spectrum preamble signal according to said synchronization information; in this way, by cross-correlating the received spread spectrum preamble signal with the local signal, and according to the peak value obtained after cross-correlation processing Through the judgment, the synchronization information of the spread spectrum preamble signal can be determined, and the time domain and frequency domain synchronization of the preamble code in the CSS spread spectrum signal can be realized; in addition, the solution in the embodiment of the present application does not require the receiver to always perform fast Four The calculation of the FFT (Fast Fourier Transform) can also save power consumption and calculation time, which can also improve the overall performance of the receiver.

Claims (16)

  1. 一种信号同步方法,所述方法包括:A signal synchronization method, the method includes:
    接收扩频前导码信号,所述扩频前导码信号包括N个序列,N为大于或等于1的正整数;Receiving a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, where N is a positive integer greater than or equal to 1;
    对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果;Perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
    对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果;Performing second correlation processing on two first processing results before and after the N first processing results and the local signal to determine a second processing result corresponding to the spread-spectrum preamble signal;
    若所述第二处理结果大于预设阈值,则在相关窗口内查询所述第二处理结果的最大值;其中,所述相关窗口表征所述扩频前导码中每个序列进行第一相关处理所对应的滑动窗口;If the second processing result is greater than the preset threshold, query the maximum value of the second processing result in a correlation window; wherein, the correlation window represents that each sequence in the spread spectrum preamble is subjected to the first correlation processing The corresponding sliding window;
    基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的同步跟踪。Based on the maximum value, the synchronization information of the spread-spectrum preamble signal is determined, and synchronization tracking of the spread-spectrum preamble signal is realized according to the synchronization information.
  2. 根据权利要求1所述的方法,其中,所述基于所述最大值,确定所述扩频前导码信号的同步信息,包括:The method according to claim 1, wherein the determining the synchronization information of the spread spectrum preamble signal based on the maximum value comprises:
    根据所述最大值,确定所述最大值对应的时间值;Determine the time value corresponding to the maximum value according to the maximum value;
    根据所述时间值进行小数倍频偏估计,得到频偏估计值;Perform a fractional multiple frequency offset estimation according to the time value to obtain an estimated value of the frequency offset;
    根据所述频偏估计值,对所述扩频前导码信号进行频率同步跟踪。Perform frequency synchronization tracking on the spread spectrum preamble signal according to the estimated value of the frequency offset.
  3. 根据权利要求1所述的方法,其中,所述基于所述最大值,确定所述扩频前导码信号的同步信息,包括:The method according to claim 1, wherein the determining the synchronization information of the spread spectrum preamble signal based on the maximum value comprises:
    根据所述最大值,确定所述最大值对应的序列;Determine the sequence corresponding to the maximum value according to the maximum value;
    根据所确定的序列,获取所述序列的起始时间和结束时间;Obtaining the start time and end time of the sequence according to the determined sequence;
    根据所述起始时间和所述结束时间,对所述扩频前导码信号进行时间同步跟踪。Perform time synchronization tracking on the spread spectrum preamble signal according to the start time and the end time.
  4. 根据权利要求1所述的方法,其中,在所述接收扩频前导码信号之后,所述方法还包括:The method according to claim 1, wherein, after the receiving the spread spectrum preamble signal, the method further comprises:
    按照预设采样率对接收到的扩频前导码信号进行采样处理,将采样后的扩频前导码信号确定为所述扩频前导码信号。Perform sampling processing on the received spread-spectrum preamble signal according to a preset sampling rate, and determine the sampled spread-spectrum preamble signal as the spread-spectrum preamble signal.
  5. 根据权利要求1所述的方法,其中,所述对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果,包括:The method according to claim 1, wherein the first correlation processing is performed on each sequence in the spread-spectrum preamble signal and a local signal to determine the N first processings corresponding to the spread-spectrum preamble signal The results include:
    对所述扩频前导码信号中每个序列分别与本地信号进行共轭相乘,得到N个乘积信号;Conjugate multiplication of each sequence in the spread spectrum preamble signal with a local signal to obtain N product signals;
    对所述N个乘积信号中每个乘积信号分别进行快速傅里叶变换FFT运算,得到N个FFT结果;Perform Fast Fourier Transform FFT operation on each of the N product signals, respectively, to obtain N FFT results;
    将所得到的N个FFT结果确定为所述扩频前导码信号对应的N个第一处理结果。The obtained N FFT results are determined as the N first processing results corresponding to the spread spectrum preamble signal.
  6. 根据权利要求5所述的方法,其中,所述对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果,包括:5. The method according to claim 5, wherein the second correlation processing is performed on the two first processing results before and after the N first processing results and the local signal to determine the spread spectrum preamble signal The corresponding second processing result includes:
    对所得到的N个FFT结果中的前后两个FFT结果在相同位置与所述本地信号进行共轭相乘,并对相乘后的结果进行累加处理,得到相关结果;Performing conjugate multiplication on the front and back two FFT results of the obtained N FFT results with the local signal at the same position, and accumulating the multiplied results to obtain a correlation result;
    将所得到的相关结果确定为所述扩频前导码信号对应的第二处理结果。The obtained correlation result is determined as the second processing result corresponding to the spread spectrum preamble signal.
  7. 根据权利要求1至6任一项所述的方法,其中,在所述第二处理结果大于预设阈值之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein, before the second processing result is greater than a preset threshold, the method further comprises:
    判断所述第二处理结果是否大于预设阈值;Judging whether the second processing result is greater than a preset threshold;
    若所述第二处理结果不大于预设阈值,则确定所述扩频前导码信号为非有用信号,停止执行所述在相关窗口内查询所述第二处理结果的最大值的步骤。If the second processing result is not greater than the preset threshold, it is determined that the spread spectrum preamble signal is a non-useful signal, and the step of querying the maximum value of the second processing result in the relevant window is stopped.
  8. 一种信号同步装置,所述信号同步装置包括接收单元、处理单元、查询单元和同步单元,其中,A signal synchronization device. The signal synchronization device includes a receiving unit, a processing unit, an inquiry unit, and a synchronization unit, wherein:
    所述接收单元,配置为接收扩频前导码信号,所述扩频前导码信号包括N个序列,N为大于或等于1的正整数;The receiving unit is configured to receive a spread-spectrum preamble signal, where the spread-spectrum preamble signal includes N sequences, and N is a positive integer greater than or equal to 1;
    所述处理单元,配置为对所述扩频前导码信号中每个序列分别与本地信号进行第一相关处理,确定所述扩频前导码信号对应的N个第一处理结果;The processing unit is configured to perform first correlation processing on each sequence in the spread-spectrum preamble signal and a local signal respectively, and determine N first processing results corresponding to the spread-spectrum preamble signal;
    所述处理单元,还配置为对所述N个第一处理结果中的前后两个第一处理结果与所述本地信号进行第二相关处理,确定所述扩频前导码信号对应的第二处理结果;The processing unit is further configured to perform second correlation processing on the two first processing results before and after the N first processing results and the local signal, and determine the second processing corresponding to the spread spectrum preamble signal result;
    所述查询单元,配置为若所述第二处理结果大于预设阈值,则在相关窗口内查询所述第二处理结果的最大值;其中,所述相关窗口表征所述扩频前导码中每个序列进行第一相关处理所对应的滑动窗口;The query unit is configured to query the maximum value of the second processing result in a correlation window if the second processing result is greater than a preset threshold; wherein, the correlation window represents each of the spread spectrum preambles Sliding windows corresponding to the first correlation processing for each sequence;
    所述同步单元,配置为基于所述最大值,确定所述扩频前导码信号的同步信息,并根据所述同步信息实现对所述扩频前导码信号的同步跟踪。The synchronization unit is configured to determine synchronization information of the spread-spectrum preamble signal based on the maximum value, and implement synchronization tracking of the spread-spectrum preamble signal according to the synchronization information.
  9. 根据权利要求8所述的信号同步装置,其中,所述信号同步装置还包括确定单元和估计单元,其中,The signal synchronization device according to claim 8, wherein the signal synchronization device further comprises a determination unit and an estimation unit, wherein,
    所述确定单元,配置为根据所述最大值,确定所述最大值对应的时间值;The determining unit is configured to determine a time value corresponding to the maximum value according to the maximum value;
    所述估计单元,配置为根据所述时间值进行小数倍频偏估计,得到频偏估计值;The estimation unit is configured to perform a fractional multiple frequency offset estimation according to the time value to obtain an estimated value of the frequency offset;
    所述同步单元,具体配置为根据所述频偏估计值,对所述扩频前导码信号进行频率同步跟踪。The synchronization unit is specifically configured to perform frequency synchronization tracking on the spread spectrum preamble signal according to the frequency offset estimation value.
  10. 根据权利要求8所述的信号同步装置,其中,所述确定单元,还配置为根据所述最大值,确定所述最大值对应的序列;以及根据所确定的序列,获取所述序列的起始时间和结束时间;The signal synchronization device according to claim 8, wherein the determining unit is further configured to determine a sequence corresponding to the maximum value according to the maximum value; and obtain the start of the sequence according to the determined sequence Time and end time;
    所述同步单元,具体配置为根据所述起始时间和所述结束时间,对所述扩频前导码信号进行时间同步跟踪。The synchronization unit is specifically configured to perform time synchronization tracking on the spread spectrum preamble signal according to the start time and the end time.
  11. 根据权利要求8所述的信号同步装置,其中,所述信号同步装置还 包括采样单元,配置为按照预设采样率对接收到的扩频前导码信号进行采样处理,将采样后的扩频前导码信号确定为所述扩频前导码信号。The signal synchronization device according to claim 8, wherein the signal synchronization device further comprises a sampling unit configured to perform sampling processing on the received spread spectrum preamble signal according to a preset sampling rate, and the sampled spread spectrum preamble signal The code signal is determined to be the spread spectrum preamble signal.
  12. 根据权利要求8所述的信号同步装置,其中,所述处理单元,具体配置为对所述扩频前导码信号中每个序列分别与本地信号进行共轭相乘,得到N个乘积信号;以及对所述N个乘积信号中每个乘积信号分别进行快速傅里叶变换FFT运算,得到N个FFT结果;以及将所得到的N个FFT结果确定为所述扩频前导码信号对应的N个第一处理结果。The signal synchronization device according to claim 8, wherein the processing unit is specifically configured to perform conjugate multiplication on each sequence in the spread spectrum preamble signal with a local signal to obtain N product signals; and Perform fast Fourier transform FFT operations on each of the N product signals respectively to obtain N FFT results; and determine the obtained N FFT results as the N corresponding to the spread spectrum preamble signal The first processing result.
  13. 根据权利要求12所述的信号同步装置,其中,所述处理单元,具体配置为对所得到的N个FFT结果中的前后两个FFT结果在相同位置与所述本地信号进行共轭相乘,并对相乘后的结果进行累加处理,得到相关结果;以及将所得到的相关结果确定为所述扩频前导码信号对应的第二处理结果。The signal synchronization device according to claim 12, wherein the processing unit is specifically configured to perform conjugate multiplication on the local signal at the same position on the two FFT results before and after the obtained N FFT results, The multiplication result is accumulated and processed to obtain a correlation result; and the obtained correlation result is determined as the second processing result corresponding to the spread spectrum preamble signal.
  14. 根据权利要求8至13任一项所述的信号同步装置,其中,所述信号同步装置还包括判断单元,配置为判断所述第二处理结果是否大于预设阈值;The signal synchronization device according to any one of claims 8 to 13, wherein the signal synchronization device further comprises a judging unit configured to judge whether the second processing result is greater than a preset threshold;
    所述确定单元,还配置为若所述第二处理结果不大于预设阈值,则确定所述扩频前导码信号为非有用信号,停止执行所述在相关窗口内查询所述第二处理结果的最大值的步骤。The determining unit is further configured to determine that the spread spectrum preamble signal is not a useful signal if the second processing result is not greater than a preset threshold, and stop performing the query of the second processing result in the relevant window The steps of the maximum value.
  15. 一种信号同步装置,所述信号同步装置包括存储器和处理器;其中,A signal synchronization device, the signal synchronization device includes a memory and a processor; wherein,
    所述存储器,配置为存储能够在所述处理器上运行的计算机程序;The memory is configured to store a computer program that can run on the processor;
    所述处理器,配置为在运行所述计算机程序时,执行如权利要求1至7任一项所述的方法。The processor is configured to execute the method according to any one of claims 1 to 7 when running the computer program.
  16. 一种计算机存储介质,其中,所述计算机存储介质存储有信号同步程序,所述信号同步程序被至少一个处理器执行时实现如权利要求1至7任一项所述的方法。A computer storage medium, wherein the computer storage medium stores a signal synchronization program, and when the signal synchronization program is executed by at least one processor, the method according to any one of claims 1 to 7 is implemented.
PCT/CN2020/128840 2019-11-21 2020-11-13 Signal synchronization method and apparatus, and computer storage medium WO2021098612A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911147089.3A CN110868237B (en) 2019-11-21 2019-11-21 Signal synchronization method and device and computer storage medium
CN201911147089.3 2019-11-21

Publications (1)

Publication Number Publication Date
WO2021098612A1 true WO2021098612A1 (en) 2021-05-27

Family

ID=69655508

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128840 WO2021098612A1 (en) 2019-11-21 2020-11-13 Signal synchronization method and apparatus, and computer storage medium

Country Status (2)

Country Link
CN (2) CN110868237B (en)
WO (1) WO2021098612A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189289A (en) * 2021-11-26 2022-03-15 中电科思仪科技(安徽)有限公司 Terahertz signal rapid synchronization method
CN114301500A (en) * 2021-11-22 2022-04-08 北京智芯微电子科技有限公司 Synchronization method, device, receiving and transmitting device of multi-user spread spectrum communication system
CN115941412A (en) * 2022-10-11 2023-04-07 北京睿信丰科技有限公司 Single-bit frequency offset measuring method applied to ultra-wideband signal transmission and related equipment
CN116436743A (en) * 2023-04-06 2023-07-14 南京厚华通信设备有限责任公司 Waveform coding timing synchronization recovery method in LoRa modulation

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868237B (en) * 2019-11-21 2021-08-24 Oppo广东移动通信有限公司 Signal synchronization method and device and computer storage medium
CN113285737B (en) * 2021-04-01 2022-04-15 清华大学 Method and system for eliminating signal interference in LoRa collision decoding
CN112769723B (en) * 2021-04-07 2021-07-16 易兆微电子(杭州)股份有限公司 Signal synchronization position determining method, device, equipment and storage medium
CN114337982B (en) * 2022-03-16 2022-07-15 深圳市华普微电子有限公司 Chirp pilot signal generation and time-frequency estimation method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599272A (en) * 2004-07-30 2005-03-23 深圳市力合微电子有限公司 Power-line carrier communication method
US7254202B2 (en) * 2003-04-01 2007-08-07 Stmicroelectronics N.V. Method of synchronizing an independent data device of a wireless data communications system on an incident pulsed signal of the ultra wide band type, and corresponding independent data device
CN101242259A (en) * 2007-02-06 2008-08-13 上海睿智通无线技术有限公司 Frame synchronization detection method and device for OFDM system
CN101309250A (en) * 2008-06-10 2008-11-19 广州杰赛科技股份有限公司 Timing synchronizing method and apparatus for communication system and receiver
US20120027147A1 (en) * 2010-07-30 2012-02-02 Baijayanta Ray Frame and Carrier Synchronization for Unbursted Packetized Transmissions Using Constant-Amplitude Continuous-Phase Frequency-Modulation
US8571148B1 (en) * 2006-05-31 2013-10-29 Marvell International Ltd. Preamble detection with multiple receive antennas
CN105142212A (en) * 2015-09-08 2015-12-09 江苏中兴微通信息科技有限公司 Frame synchronous detection method based on zero correlation zone sequence
CN110868237A (en) * 2019-11-21 2020-03-06 Oppo广东移动通信有限公司 Signal synchronization method and device and computer storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4837403B2 (en) * 2006-03-08 2011-12-14 ルネサスエレクトロニクス株式会社 Synchronization timing detection device, reception device, and synchronization timing detection method
US20080107200A1 (en) * 2006-11-07 2008-05-08 Telecis Wireless, Inc. Preamble detection and synchronization in OFDMA wireless communication systems
CN101227443A (en) * 2007-01-19 2008-07-23 华为技术有限公司 Apparatus and method for generating training symbol and estimating bias of training symbol
CN101651976B (en) * 2008-07-18 2013-11-06 俊茂微电子(上海)有限公司 Method and device for detection and synchronization of broadcast channel propagation time interval
CN101753499B (en) * 2008-12-05 2015-05-06 三星电子株式会社 Method for jointly estimating the integral multiple carrier frequency shift and accurate symbol timing
CN101494635B (en) * 2009-03-06 2011-06-08 北京威讯紫晶科技有限公司 Time frequency synchronization method of short distance wireless network
KR20120140000A (en) * 2011-06-20 2012-12-28 삼성전자주식회사 Method and apparatus for synchronization acquisition for direct communication between devices
CN104735014B (en) * 2015-02-06 2017-12-22 北京遥测技术研究所 A kind of time synchronization method related based on leading symbol difference
CN107438043A (en) * 2016-05-26 2017-12-05 上海高清数字科技产业有限公司 Leading symbol detects analytic method
CN109104390B (en) * 2018-09-12 2021-01-12 北京睿信丰科技有限公司 Method and device for capturing and tracking high-speed signal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7254202B2 (en) * 2003-04-01 2007-08-07 Stmicroelectronics N.V. Method of synchronizing an independent data device of a wireless data communications system on an incident pulsed signal of the ultra wide band type, and corresponding independent data device
CN1599272A (en) * 2004-07-30 2005-03-23 深圳市力合微电子有限公司 Power-line carrier communication method
US8571148B1 (en) * 2006-05-31 2013-10-29 Marvell International Ltd. Preamble detection with multiple receive antennas
CN101242259A (en) * 2007-02-06 2008-08-13 上海睿智通无线技术有限公司 Frame synchronization detection method and device for OFDM system
CN101309250A (en) * 2008-06-10 2008-11-19 广州杰赛科技股份有限公司 Timing synchronizing method and apparatus for communication system and receiver
US20120027147A1 (en) * 2010-07-30 2012-02-02 Baijayanta Ray Frame and Carrier Synchronization for Unbursted Packetized Transmissions Using Constant-Amplitude Continuous-Phase Frequency-Modulation
CN105142212A (en) * 2015-09-08 2015-12-09 江苏中兴微通信息科技有限公司 Frame synchronous detection method based on zero correlation zone sequence
CN110868237A (en) * 2019-11-21 2020-03-06 Oppo广东移动通信有限公司 Signal synchronization method and device and computer storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301500A (en) * 2021-11-22 2022-04-08 北京智芯微电子科技有限公司 Synchronization method, device, receiving and transmitting device of multi-user spread spectrum communication system
CN114301500B (en) * 2021-11-22 2024-01-23 北京智芯微电子科技有限公司 Synchronization method, synchronization device, reception device and transmission device for multi-user spread spectrum communication system
CN114189289A (en) * 2021-11-26 2022-03-15 中电科思仪科技(安徽)有限公司 Terahertz signal rapid synchronization method
CN114189289B (en) * 2021-11-26 2023-07-11 中电科思仪科技(安徽)有限公司 Terahertz signal rapid synchronization method
CN115941412A (en) * 2022-10-11 2023-04-07 北京睿信丰科技有限公司 Single-bit frequency offset measuring method applied to ultra-wideband signal transmission and related equipment
CN116436743A (en) * 2023-04-06 2023-07-14 南京厚华通信设备有限责任公司 Waveform coding timing synchronization recovery method in LoRa modulation
CN116436743B (en) * 2023-04-06 2023-12-05 南京厚华通信设备有限责任公司 Waveform coding timing synchronization recovery method in LoRa modulation

Also Published As

Publication number Publication date
CN113346927A (en) 2021-09-03
CN113346927B (en) 2022-12-23
CN110868237B (en) 2021-08-24
CN110868237A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
WO2021098612A1 (en) Signal synchronization method and apparatus, and computer storage medium
US6967993B1 (en) Ultrawide bandwidth system and method for fast synchronization using sub-code spins
CN100550669C (en) Direct sequence spread spectrum communication equipment and method thereof
CN101577580B (en) Frame synchronization method
US6266361B1 (en) Method and architecture for correcting carrier frequency offset and spreading code timing offset in a direct sequence spread spectrum communication system
US20050175076A1 (en) System and method for tracking an ultrawide bandwidth signal
RU2658625C1 (en) Spread spectrum signal generating method, generating apparatus, receiving method and receiving apparatus
US20080170560A1 (en) Training sequence for wireless communication system
JPH0810839B2 (en) Spread spectrum communication device
Zeng et al. Joint radar-communication: Low complexity algorithm and self-interference cancellation
CN107404450A (en) The method and device of demodulated signal
Basireddy et al. OFDM waveform design for interference resistant automotive radars
US9912511B2 (en) Systems and methods for time synchronization between transmitters and receivers in a communication system
JP2003518802A (en) Digital Receiver Sensitivity Extension Method Using Analog Correlation
CN107370705A (en) FFT optimization method in the capture of high dynamic weakly continuous phase modulated signal
Piccinni et al. Narrowband distance evaluation technique for indoor positioning systems based on Zadoff-Chu sequences
Yan et al. Unambiguous combined correlation functions for sine-BOC signal tracking
CN101022438A (en) Compatible DAB digital broadcasting receiver carrier synchronizing method and system
Neunteufel et al. ToF-based indoor positioning for low-power IoT nodes
Hu et al. Integrated radar and communication system based on stepped frequency continuous waveform
JP2012195754A (en) Spurious measuring device, and receiving device and communication system utilizing the same
CN113132281B (en) Linear frequency modulation signal tracking method, device, wireless communication equipment and storage medium
CN111884760B (en) High-throughput backscattering fine-granularity frequency shift coding method based on FPGA
CN109581297B (en) Radar communication integrated signal design method
An et al. A turbo coded LoRa-index modulation scheme for IoT communication

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20890582

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20890582

Country of ref document: EP

Kind code of ref document: A1