Spread spectrum signal capturing method and device
By performing segmented accumulation and spectrum analysis of the spread spectrum signal in the satellite Internet, and determining the capture output using the peak-to-average ratio, the problem of noise interference affecting signal capture is solved, and efficient spread spectrum signal capture is achieved.
Patent Information
- Application Number
- CN202311633236.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2043-11-30
AI Technical Summary
In the satellite Internet, the capture of spread spectrum signals is greatly affected by noise interference, resulting in low signal capture efficiency.
By moving the sliding window in multiple data packets, extracting the synchronization code data, accumulating and splicing, a data sequence is obtained, and Fast Fourier Transform (FFT) is performed to obtain the peak-to-average ratio, and the capture output of the spread spectrum signal is determined.
Through segmented accumulation and spectrum analysis, this method can effectively reduce noise interference, improve the capture accuracy of spread spectrum signals, and is suitable for scenarios with low signal-to-noise, achieving low complexity processing.
Smart Images

Figure CN119420613A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of spread spectrum communication technology, and in particular to a spread spectrum signal capture method and device. Background Art
[0002] Satellite Internet is an Internet based on satellite communications. It forms a large-scale network by launching a certain number of satellites to radiate the world and build a large satellite system with real-time information processing. It is a new type of network that can provide broadband Internet access and other communication services to ground and air terminals. In satellite Internet, the receiver needs to capture the spread spectrum signal sent from the satellite and despread it to restore the original information signal. However, since the signal transmission distance is long and needs to pass through the noise interference in the atmosphere and space, the noise power is relatively large, which will affect the capture of the spread spectrum signal. Summary of the invention
[0003] This application proposes a method and device for capturing spread spectrum signals. The specific scheme is as follows:
[0004] In one aspect, an embodiment of the present application provides a spread spectrum signal acquisition method, including:
[0005] Moving the sliding window for the i-th time in each of the plurality of first data packets respectively to extract a segment of first synchronization code data from each of the first data packets; wherein the plurality of first data packets are obtained by mixing the spread spectrum signal with the center frequency of the local oscillation signal as the mixing frequency, and the value of i is 1, 2, ..., N, where N is a positive integer;
[0006] Accumulate each segment of first synchronization code data, and concatenate the accumulation results of multiple segments of first synchronization code data to obtain a first data sequence;
[0007] Moving the sliding window for the i-th time in each of the plurality of second data packets respectively to extract a second synchronization code data segment from each of the second data packets; wherein the plurality of second data packets are obtained by mixing the spread spectrum signal with the sum of the center frequency and the frequency offset value as the mixing frequency;
[0008] Accumulating each segment of the second synchronization code data, and concatenating the accumulation results of multiple segments of the second synchronization code data to obtain a second data sequence;
[0009] Performing a fast Fourier transform (FFT) on the first data sequence and the second data sequence respectively to obtain a first peak-to-average ratio corresponding to the first data sequence and a second peak-to-average ratio corresponding to the second data sequence;
[0010] The capture output of the spread spectrum signal is determined according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times.
[0011] In another aspect, an embodiment of the present application provides a spread spectrum signal acquisition device, comprising:
[0012] A first extraction module is used to move the sliding window for the i-th time in each of the multiple first data packets to extract a segment of first synchronization code data from each first data packet; wherein the multiple first data packets are obtained by mixing the spread spectrum signal with the center frequency of the local oscillation signal as the mixing frequency, and the value of i is 1, 2, ..., N, where N is a positive integer;
[0013] A first acquisition module, configured to accumulate each segment of first synchronization code data and concatenate the accumulated results of multiple segments of first synchronization code data to obtain a first data sequence;
[0014] A second extraction module is used to move the sliding window for the i-th time in the plurality of second data packets respectively, so as to extract a second synchronization code data segment from each second data packet; wherein the plurality of second data packets are obtained by mixing the spread spectrum signal with the sum of the center frequency and the frequency offset value as the mixing frequency;
[0015] A second acquisition module is used to accumulate each segment of second synchronization code data and splice the accumulation results of multiple segments of second synchronization code data to obtain a second data sequence;
[0016] A third acquisition module is used to perform fast Fourier transform FFT on the first data sequence and the second data sequence respectively to obtain a first peak-to-average ratio corresponding to the first data sequence and a second peak-to-average ratio corresponding to the second data sequence;
[0017] The first determination module is used to determine the capture output of the spread spectrum signal according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times.
[0018] Another aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the above aspect is implemented.
[0019] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in the aforementioned aspect is implemented.
[0020] Another aspect of the present application provides a computer program product on which a computer program is stored. When the program is executed by a processor, the method described in the above aspect is implemented.
[0021] The spread spectrum signal capture method and device proposed in the present application, by moving the sliding window for the i-th time in multiple first data packets respectively, to extract a segment of first synchronization code data from each first data packet, and accumulate each segment of first synchronization code data, and splicing the accumulated results of multiple segments of first synchronization code data to obtain a first data sequence, and moving the sliding window for the i-th time in multiple second data packets respectively, to extract a segment of second synchronization code data from each second data packet, accumulate each segment of second synchronization code data, and splicing the accumulated results of multiple segments of second synchronization code data to obtain a second data sequence, and performing FFT on the first data sequence and the second data sequence respectively to obtain a first peak-to-average ratio and a second peak-to-average ratio, and then determining the capture output of the spread spectrum signal according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times. Therefore, by adopting the spectrum analysis after splicing the segmented accumulated data to obtain the peak-to-average ratio, and using the frequency offset to solve the frequency ambiguity problem caused by forced splicing, it is not only suitable for scenes with low signal-to-noise ratio, but also has low implementation complexity.
[0022] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0024] Figure 1 A schematic diagram of a flow chart of a spread spectrum signal acquisition method provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of a frame format of a spread spectrum signal provided in an embodiment of the present application;
[0026] Figure 3 Capture the curve graph when the mixing frequency is the center frequency;
[0027] Figure 4 Capture the curve graph when the mixing frequency is the center frequency plus the frequency offset value;
[0028] Figure 5 A schematic diagram of a flow chart of another spread spectrum signal acquisition method provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of a flow chart of another spread spectrum signal acquisition method provided in an embodiment of the present application;
[0030] Figure 7 A schematic diagram of the structure of a spread spectrum signal acquisition device provided in an embodiment of the present application;
[0031] Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0033] The spread spectrum signal capture method and device according to the embodiment of the present application are described below with reference to the accompanying drawings.
[0034] Figure 1 A schematic diagram of a flow chart of a spread spectrum signal acquisition method provided in an embodiment of the present application.
[0035] The execution subject of the spread spectrum signal capture method in the embodiment of the present application may be a spread spectrum signal capture device, which may be arranged in a receiving end device, and is not limited in this embodiment.
[0036] like Figure 1 As shown, the method may include the following steps:
[0037] Step 101 : Move the sliding window for the ith time in each of a plurality of first data packets to extract a segment of first synchronization code data from each first data packet.
[0038] Among them, multiple first data packets are obtained by mixing the spread spectrum signal with the center frequency of the local oscillation signal as the mixing frequency, the value of i is 1, 2, ..., N, N is a positive integer, the length of each first data packet is the same, and the value of N is related to the sliding step size.
[0039] In the present application, the receiver in the receiving device can receive the spread spectrum signal sent by the transmitting device, can use the center frequency of the local oscillation signal as the mixing frequency, mix the spread spectrum signal and the local oscillation signal, and extract multiple segments of first synchronization code data from the signal obtained by the mixing process.
[0040] As an example, when receiving a spread spectrum signal, multiple complete data packets can be obtained according to the frame format structure of the spread spectrum signal, and then the multiple complete data packets obtained are mixed with the center frequency of the local oscillation signal as the mixing frequency to obtain multiple first data packets, and the sliding window is moved for the i-th time in the multiple first data packets to extract a segment of first synchronization code data from each first data packet, thereby obtaining multiple segments of first synchronization code data.
[0041] The length of the sliding window is the same as the length of the synchronization code data, and the sliding step can be set as needed. For example, if the sliding step is 1, the number of times the sliding window moves in the first data packet is the same as the length of the first data packet.
[0042] Among them, the number of complete data packets is the same as the number of first data packets. For example, two complete data packets are mixed with the center frequency of the local oscillation signal as the mixing frequency. The complete data packet after mixing can be called the first data packet, that is, two first data packets are obtained.
[0043] As another example, when receiving a spread spectrum signal, a plurality of continuous complete data packets can be obtained according to the frame format structure of the spread spectrum signal, and then the obtained continuous multiple complete data packets are mixed with the center frequency of the local oscillation signal as the mixing frequency to obtain a plurality of continuous first data packets, and the sliding window is moved for the i-th time in the continuous multiple first data packets to extract a segment of first synchronization code data from each first data packet, thereby extracting a plurality of continuous segments of first synchronization code data. Here, the continuous multiple complete data packets can be understood as the sampling points between adjacent complete data packets are continuous, and since the first synchronization code data are extracted respectively from the continuous multiple first data packets, the extracted multiple segments of first synchronization code data can be called continuous multiple segments of first synchronization code data.
[0044] For example, the frame format of a spread spectrum signal is Figure 2 As shown, each segment of synchronization code data in the spread spectrum signal can be the same, based on Figure 2 The data packet obtained by the frame format shown can be expressed as r={r_1, r_2, ..., r_N}, for example, wherein r_1 may be synchronization code data or service data, and r_N may be synchronization code data or service data.
[0045] When extracting a plurality of consecutive first synchronization code data, the position of the synchronization code data may be calculated according to the frame format of the spread spectrum signal, and then the plurality of consecutive first synchronization code data may be extracted according to the position of the synchronization code data.
[0046] Exemplarily, according to the frame format of the spread spectrum signal, the positions of the first segment of the first synchronization code data, the second segment of the first synchronization code data, ..., the Dth segment of the first synchronization code data are calculated, and each segment of the first synchronization code data is extracted, and the jth segment of the first synchronization code data can be expressed as d_j = {d_j_1, d_j_2, ..., d_j_M}, where D and M are positive integers. Among them, each segment of the first synchronization code data extracted can be the M best sampling point data at the location of the synchronization head, and the synchronization head refers to the first synchronization code data in a segment of synchronization code data in the spread spectrum signal.
[0047] For example, the length of a complete data packet is 10000, and the length of the synchronization code data is 500. According to the protocol, three complete data packets are obtained: 1-10000, 10001-20000, and 20001-30000. Among them, 1-10000, 10001-20000, and 20001-30000 can be understood as the sequence number of the sampling point (i.e., the sampling sequence number). The three complete data packets are mixed with the center frequency as the mixing frequency, and the mixing frequency is respectively obtained at The sliding window is moved for the first time to extract three segments of the first synchronization code data from the three data packets received: 1-500, 10001-10500, 20001-20500; the sliding window is moved for the second time to extract three segments of the first synchronization code data: 2-501, 10002-10501, 20002-20501; and so on, the sliding window is moved for the last time to extract three segments of the first synchronization code data: 10000-100499, 20000-20499.
[0048] Step 102, accumulate each segment of first synchronization code data, and concatenate the accumulation results of multiple segments of first synchronization code data to obtain a first data sequence.
[0049] As a possible implementation manner, all synchronization code data in each segment of first synchronization code data may be accumulated to obtain an accumulated result of each segment of first synchronization code data, and then the accumulated results of multiple segments of first synchronization code data may be spliced to obtain a first data sequence.
[0050] For example, there are d segments of first synchronization code data in total. After obtaining an accumulation result of each segment of first synchronization code data, the d accumulation results are sequentially spliced to obtain a sequence of d data.
[0051] As another possible implementation method, the synchronization code data in each segment of the first synchronization code data can be divided into multiple small segments, and the synchronization code data in each small segment can be accumulated to obtain an accumulated result. That is, each segment of the first synchronization code data can be accumulated in segments, and then the multiple segmented accumulation results corresponding to the multiple segments of the first synchronization code data can be spliced together in sequence to obtain a first data sequence.
[0052] Step 103: Move the sliding window for the ith time in each of the plurality of second data packets to extract a segment of second synchronization code data from each second data packet.
[0053] The plurality of second data packets are obtained by mixing the spread spectrum signal with the sum of the center frequency and the frequency offset value as the mixing frequency.
[0054] In the present application, the receiver in the receiving device can receive the spread spectrum signal sent by the transmitting device, and can mix the spread spectrum signal and the local oscillation signal with the sum of the center frequency of the local oscillation signal and the frequency offset value as the mixing frequency, and extract multiple segments of second synchronization code data from the signal obtained by the mixing process.
[0055] As an example, when receiving a spread spectrum signal, multiple complete data packets can be obtained according to the frame format structure of the spread spectrum signal, and then the multiple complete data packets obtained are mixed with the sum of the center frequency of the local oscillation signal and the frequency offset value as the mixing frequency to obtain multiple second data packets, and the sliding window is moved for the i-th time in the multiple second data packets to extract a segment of second synchronization code data from each second data packet, thereby obtaining multiple segments of second synchronization code data.
[0056] As another example, when receiving a spread spectrum signal, a plurality of consecutive complete data packets can be obtained according to the frame format structure of the spread spectrum signal, and then the obtained plurality of consecutive complete data packets are mixed with the sum of the center frequency of the local oscillation signal and the frequency offset value as the mixing frequency to obtain a plurality of consecutive second data packets, and the sliding window is moved for the i-th time in the plurality of consecutive second data packets to extract a segment of second synchronization code data from each second data packet, thereby extracting a plurality of consecutive segments of second synchronization code data.
[0057] In the present application, the number of second data packets may be the same as the number of first data packets, and the sampling points of multiple second data packets may partially overlap or not overlap with the sampling points of multiple first data packets. For example, according to the protocol, three complete data packets are obtained: 1-10000, 10001-20000, 20001-30000, and these three data packets are mixed with the center frequency as the mixing frequency to obtain three first data packets. According to the protocol, three complete data packets 10001-20000, 20001-30000, and 30001-40000 are obtained, and these three complete data packets are mixed with the sum of the center frequency and the frequency offset value as the mixing frequency to obtain three second data packets.
[0058] In order to improve the accuracy of capture, in the present application, the number of segments of the extracted second synchronization code data may be the same as the number of segments of the extracted first synchronization code data.
[0059] In the present application, extracting multiple segments of second synchronization code data by moving the sliding window for the i-th time in multiple second data packets is similar to extracting multiple segments of first synchronization code data by moving the sliding window for the i-th time in multiple first data packets, so it will not be repeated here.
[0060] Step 104, accumulate each segment of the second synchronization code data, and concatenate the accumulation results of multiple segments of the second synchronization code data to obtain a second data sequence.
[0061] In the present application, the method of obtaining the second data sequence is similar to the method of obtaining the first data sequence, so it will not be repeated here.
[0062] Step 105 , performing FFT on the first data sequence and the second data sequence respectively to obtain a first peak-to-average ratio corresponding to the first data sequence and a second peak-to-average ratio corresponding to the second data sequence.
[0063] In the present application, a fast Fourier transform (FFT) may be performed on the first data sequence, and a power spectrum may be obtained based on the result of the FFT, and then a first peak-to-average ratio corresponding to the first data sequence may be obtained based on the power spectrum.
[0064] For example, assuming that the first data sequence is G = {F_1_1, F_1_2, ..., F_1_P, F_2_1, F_2_2, ..., F_2_P, ..., F_D_1, F_D_2, ..., F_D_P}, perform FFT calculation on G to obtain H = {h_1, h_2, ..., h_R}, and obtain the power spectrum L = {L_1, L_2, ..., L_R}, where L_j = h_j*h_j, where j is 1, 2, ..., R, and R is a positive integer. After that, determine the maximum value L_max among L_1, L_2, ..., L_R, and calculate the average value L_mean of L_1, L_2, ..., L_R, then the first peak-to-average ratio is the ratio of L_max to L_mean.
[0065] In the present application, FFT is also performed on the second data sequence, and a power spectrum is obtained based on the result of FFT, and then a second peak-to-average ratio corresponding to the second data sequence is obtained according to the power spectrum. The method for obtaining the second peak-to-average ratio is similar to the method for obtaining the first peak-to-average ratio, so it will not be repeated here.
[0066] Since the accumulation and splicing of multiple segments of synchronization code data may cause frequency ambiguity, in the present application, the problem of frequency ambiguity can be solved by performing mixing processing with the sum of the center frequency and the frequency offset value as the mixing frequency.
[0067] Step 106, determining the capture output of the spread spectrum signal according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times.
[0068] In the present application, based on the above method, the first peak-to-average ratio and the second peak-to-average ratio can be calculated each time the sliding window is moved, and the position of the largest peak-to-average ratio among the first peak-to-average ratio and the second peak-to-average ratio calculated by moving the sliding window N times can be used as the capture output of the spread spectrum signal.
[0069] Among them, the capture output of the spread spectrum signal can refer to the position of the synchronization head in a certain synchronization code data segment, the position of the synchronization head can refer to the sampling sequence number, and the synchronization head refers to the first synchronization code data in a synchronization code data segment in the spread spectrum signal. For example, the time window length range is 1 to 10000, the first point has a maximum peak-to-average ratio, and each point has a maximum peak-to-average ratio. If the peak-to-average ratio of the 800th point in 10000 is the largest, then the capture output is 800.
[0070] Alternatively, the maximum peak-to-average ratio of the first peak-to-average ratio and the second peak-to-average ratio calculated by each sliding window movement may be determined as the second target peak-to-average ratio, and then the position of the maximum peak-to-average ratio of the second target peak-to-average ratios corresponding to the N sliding window movements respectively may be used as the capture output of the spread spectrum signal. In other words, the maximum peak-to-average ratio may be determined from the first peak-to-average ratio and the second peak-to-average ratio obtained by each sliding window movement, and then the position of the maximum peak-to-average ratio of the maximum peak-to-average ratios corresponding to the N sliding window movements respectively may be used as the capture output of the spread spectrum signal.
[0071] For example, the length of the fake data packet is 10000, and one data packet includes a synchronization code data segment and a service data segment. The length of the synchronization code data segment is 500. The three first data packets are: 1-10000, 10001-20000, 20001-30000. The first sliding points are respectively taken in the three first data packets (i.e., three first synchronization code data segments are extracted): 1-500, 10001-10500, 20001-20500. The peak-to-average ratio pA1 is calculated based on the three synchronization code data segments extracted by the first moving sliding window; the second sliding point is: 2-501 , 10002-10501, 20002-20501, the peak-to-average ratio pA2 is calculated based on the three segments of synchronization code data extracted by the second moving sliding window; the third sliding point: 3-502, 10003-10502, 20003-20502, the peak-to-average ratio pA3 is calculated based on the three segments of synchronization code data extracted by the third moving sliding window; ...; the last sliding point: 10000-10499, 20000-20499, the peak-to-average ratio pA10000 is calculated based on the two segments of synchronization code data extracted by the ten thousandth moving sliding window.
[0072] Assume that the three second data packets are: 10001-20000, 20001-30000, 30001-40000, respectively, the first sliding points in the three second data packets (i.e., extracting three segments of second synchronization code data): 10001-10500, 20001-20500, 30001-30500, the peak-to-average ratio pB1 is calculated based on the three segments of synchronization code data extracted by the first moving sliding window; the second sliding points are: 10002-10501, 20002-20501, 30002-30 501, based on the three segments of synchronization code data extracted by the second moving sliding window, the peak-to-average ratio pB2 is calculated; the third sliding points are: 10003-10502, 20003-20502, 30003-30502, based on the three segments of synchronization code data extracted by the third moving sliding window, the peak-to-average ratio pB3 is calculated; ...; the last sliding points are: 20000-20499, 30000-30499, based on the two segments of synchronization code data extracted by the ten thousandth moving sliding window, the peak-to-average ratio pB10000 is calculated.
[0073] Therefore, the maximum value can be taken from the peak-to-average ratio values pA1 and pB1 obtained from the first sliding point, the maximum value can be taken from the peak-to-average ratio values pA2 and pB2 obtained from the second sliding point, and so on. The maximum value can be taken from the peak-to-average ratio values pA10000 and pB10000 obtained from the ten thousandth sliding point, and the position of the largest peak-to-average ratio among these 10,000 maximum values is used as the capture output of the spread spectrum signal.
[0074] Assume that the frame format of the spread spectrum signal is as follows Figure 2 As shown, the synchronization code data is binary phase shift keying (BPSK) modulated, and the length of each synchronization code data segment is 500 chips. The service data is quadrature phase shift keying (QPSK) modulated, with a length of 5500 chips. The spread factor is 500. The data length is selected as 30 segments, each segment is 6000 chips long. When the frequency offset value is 50kHz, the signal-to-noise ratio Ec / N0=-25dB, and the chip rate is 5Msp, the mixing frequency is the center frequency, and the spectrum of the spliced data points is as follows: Figure 3 As shown, the mixing frequency is the center frequency plus the frequency offset value. The spectrum of the spliced data points is as follows: Figure 4 shown.
[0075] Figure 3 In the figure, X:3002 indicates that the position of the synchronization header in a synchronization code data segment is 3002, and Y:53.27 indicates the peak-to-average ratio; Figure 4X:3002 indicates that the position of the synchronization header in a synchronization code data segment is 3002, and Y:23.4 indicates the peak-to-average ratio. Figure 3 Peak-to-average ratio Figure 4 If the maximum value is 3002, then 3002 can be used as the capture output of the spread spectrum signal. 3002 can refer to the serial number of the sampling point. For example, when 80,000 numbers are sampled and the peak-to-average ratio is the largest when the sliding window moves to the 3002th number, it means that the position of the synchronization head in a synchronization code data is at position 3002.
[0076] It should be noted that, in the present application, the order of obtaining the first data sequence and the second data sequence is not limited.
[0077] The spread spectrum signal capture method of the embodiment of the present application can solve the spread spectrum signal capture problem under the conditions where synchronization codes are scattered, the signal-to-noise ratio is low, and resources are limited.
[0078] In the embodiment of the present application, by moving the sliding window for the i-th time in multiple first data packets, a segment of first synchronization code data is extracted from each first data packet, and each segment of first synchronization code data is accumulated, and the accumulated results of multiple segments of first synchronization code data are spliced to obtain a first data sequence, and the sliding window is moved for the i-th time in multiple second data packets to extract a segment of second synchronization code data from each second data packet, and each segment of second synchronization code data is accumulated, and the accumulated results of multiple segments of second synchronization code data are spliced to obtain a second data sequence, and the first data sequence and the second data sequence are respectively subjected to FFT to obtain a first peak-to-average ratio and a second peak-to-average ratio, and then the capture output of the spread spectrum signal is determined according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times. Therefore, by adopting the spectrum analysis after splicing the segmented accumulated data to obtain the peak-to-average ratio, and using the frequency offset to solve the frequency ambiguity problem caused by forced splicing, it is not only suitable for scenes with low signal-to-noise ratio, but also has low implementation complexity.
[0079] Figure 5 A schematic diagram of a flow chart of another spread spectrum signal acquisition method provided in an embodiment of the present application.
[0080] like Figure 5 As shown, the spread spectrum signal capture method also includes:
[0081] Step 501: determine a plurality of first frequency points in a frequency offset range corresponding to a spread spectrum signal.
[0082] In practical applications, the frequency offset range may be different in different communication scenarios.
[0083] In the present application, the frequency offset range corresponding to the communication scenario to which the spread spectrum signal belongs can be divided to obtain multiple first frequency points. Among them, the finer the division granularity, the more the number of first frequency points, and the higher the accuracy of the frequency offset value determined based on the first frequency point. The division granularity can be determined according to actual needs, and the present application does not limit this.
[0084] For example, if the frequency offset range is 0 to 30 kHz, 0, 10 kHz, 20 kHz and 30 kHz can be divided into one frequency point, so there are 4 first frequency points.
[0085] Step 502, taking each first frequency point in the plurality of first frequency points as an index, taking each first frequency point in the plurality of first frequency points as a second frequency point, traversing the plurality of second frequency points, and offsetting the ideal modulation signal by the second frequency point and the third frequency point respectively.
[0086] In this application, the ideal modulation signal and the received spread spectrum signal are both generated based on the same communication protocol, but the difference is that the content of the ideal modulation signal is different from that of the spread spectrum signal. In addition, the center frequency of the ideal modulation signal is consistent with that of the spread spectrum signal sent by the transmitter, but since the spread spectrum signal sent by the transmitter passes through the channel, there may be noise and Doppler frequency deviation, so that the center frequency of the ideal modulation signal and the received spread spectrum signal may deviate slightly.
[0087] In the present application, each first frequency point in a plurality of first frequency points can be used as an index, each first frequency point in a plurality of first frequency points can be used as a second frequency point, and then a plurality of second frequency points can be traversed, and the ideal modulated signal can be offset by the second frequency point and the third frequency point respectively to obtain a corresponding offset signal, wherein the third frequency point is the sum of the first frequency point and the second frequency point.
[0088] For example, assuming that the frequency offset range is 0 to 30kHz, there are four first frequency points f1, namely 0, 10kHz, 20kHz and 30kHz. Each first frequency point f1 can be used as an index, that is, f1 is fixed, 0, 10kHz, 20kHz and 30kHz are used as the second frequency points f2, and then the four f2s are traversed. For example, when f1=0 and f2=0 are fixed, the ideal modulation signal is offset by 0 and 0 respectively, when f2=10kHz, the ideal modulation signal is offset by 10kHz and 10kHz respectively, when f2=20kHz, the ideal modulation signal is offset by 20kHz and 20kHz respectively, and when f2=30kHz, the ideal modulation signal is offset by 30kHz and 30kHz respectively; when f1=10kHz and f2=0kHz are fixed, the ideal modulation signal is offset by 0 and 10kHz respectively, when f2=10kHz, the ideal modulation signal is offset by 10kHz and 20kHz respectively, when f2=20kHz, the ideal modulation signal is offset by 20kHz and 30kHz respectively, and when f2=30kHz, the ideal modulation signal is offset by 30kHz and 40kHz respectively; when f1 is fixed When f1=30kHz, the ideal modulation signal will be offset by 0 and 30kHz respectively when f2=0kHz, by 10kHz and 30kHz respectively when f2=10kHz, by 20kHz and 40kHz respectively when f2=20kHz, and by 30kHz and 50kHz respectively when f2=30kHz; when f1=30kHz, the ideal modulation signal will be offset by 0 and 30kHz respectively when f2=0kHz, by 10kHz and 40kHz respectively when f2=10kHz, by 20kHz and 50kHz respectively when f2=20kHz, and by 30kHz and 60kHz respectively when f2=30kHz.
[0089] Step 503: obtain a peak-to-average ratio corresponding to the second frequency point according to the shifted signal corresponding to the second frequency point, and obtain a peak-to-average ratio corresponding to the third frequency point according to the shifted signal corresponding to the third frequency point.
[0090] In the present application, the offset signal corresponding to the second frequency point can be mixed with the center frequency of the local oscillation signal as the frequency point, and multiple segments of synchronization code data can be extracted from the signal obtained by the mixing process. Based on the multiple segments of synchronization code data, the corresponding data sequence is obtained, and then the peak-to-average ratio is obtained. Similarly, the offset signal corresponding to the third frequency point can be processed in the same way to obtain the peak-to-average ratio corresponding to the third frequency point.
[0091] Step 504: determine the peak-to-average ratio corresponding to each first frequency point from the peak-to-average ratios corresponding to the plurality of second frequency points and the peak-to-average ratios corresponding to the plurality of third frequency points.
[0092] For each first frequency point, the maximum peak-to-average ratio among the peak-to-average ratios corresponding to the multiple second frequency points and the peak-to-average ratios corresponding to the multiple third frequency points may be used as the peak-to-average ratio corresponding to each first frequency point.
[0093] Alternatively, for a certain first frequency point, the maximum peak-to-average ratio among the peak-to-average ratios corresponding to each second frequency point and the peak-to-average ratios corresponding to each third frequency point can be used as the first target peak-to-average ratio corresponding to each second frequency point, and the maximum peak-to-average ratio among the first target peak-to-average ratios corresponding to multiple second frequency points can be used as the peak-to-average ratio corresponding to the first frequency point.
[0094] For instance, continuing with the above example, taking f1=10kHz as an example, when f2=0, the peak-to-average ratios based on the two offset signals are A1 and B1; when f2=10kHz, the peak-to-average ratios based on the two offset signals are A2 and B2; when f2=20kHz, the peak-to-average ratios based on the two offset signals are A3 and B3; when f2=30kHz, the peak-to-average ratios based on the two offset signals are A4 and B4. The largest peak-to-average ratio among A1, B1, A2, B2, A3, B3, A4, and B4 can be taken as the peak-to-average ratio corresponding to f1=10kHz.
[0095] Alternatively, the first target peak-to-average ratio corresponding to f2=0 is determined from A1 and B1, the first target peak-to-average ratio corresponding to f2=10kHz is determined from A2 and B2, the first target peak-to-average ratio corresponding to f2=20kHz is determined from A3 and B3, the first target peak-to-average ratio corresponding to f2=30kHz is determined from A4 and B4, and the largest peak-to-average ratio among the first target peak-to-average ratios corresponding to the four second frequency points f2 is taken as the peak-to-average ratio corresponding to f1=10kHz.
[0096] Step 505: Determine the first frequency point corresponding to the maximum peak-to-average ratio among the peak-to-average ratios corresponding to the plurality of first frequency points as the frequency offset value.
[0097] In the present application, each first frequency point is used as an index to traverse multiple second frequency points, and the peak-to-average ratio corresponding to each first frequency point can be determined. The first frequency point corresponding to the largest peak-to-average ratio among the peak-to-average ratios corresponding to the multiple first frequency points can be determined as the frequency offset value. Each first frequency point fre1 in the frequency offset range is used as an index, and multiple first frequency points fre1 can be used as the second frequency point fre2. For each traversed second frequency point fre2, two peak-to-average ratios peak_a and peak_b corresponding to fre2 and fre1+fre2 can be obtained. The maximum value can be selected as the output of the index number (fre1, fre2), recorded as peak_1_2. After the traversal of all fre2 is completed, the maximum value of the array formed by all peak_1_2 is obtained as the output of the index fre1, recorded as peak_1. Traverse all fre1, take the maximum value of the array formed by all peak_1, and the corresponding frequency point is the frequency offset value.
[0098] Assume that the frequency range is 0 to 30kHz, and there are 4 first frequency points 0, 10kHz, 20kHz, and 30kHz. Fix f1 = 0, and f2 is 0, 10kHz, 20kHz, and 30kHz respectively. For each f2, determine the first target peak-to-average ratio, and take the largest value from the four first target peak-to-average ratios as the peak-to-average ratio corresponding to f1 = 0; fix f1 = 10kHz, and f2 is 0, 10kHz, 20kHz, and 30kHz respectively. For each f2, determine the first target peak-to-average ratio, and take the largest value from the four first target peak-to-average ratios as the peak-to-average ratio corresponding to f1 = 10kHz; fix f1 =20kHz, f2 takes 0, 10kHz, 20kHz, 30kHz respectively, for each f2, the first target peak-to-average ratio is determined, and the maximum value is taken from the four first target peak-to-average ratios as the peak-to-average ratio corresponding to f1=20kHz; fixed f1=30kHz, f2 takes 0, 10kHz, 20kHz, 30kHz respectively, for each f2, the first target peak-to-average ratio is determined, and the maximum value is taken from the four first target peak-to-average ratios as the peak-to-average ratio corresponding to f1=30kHz. Afterwards, from the four peak-to-average ratios of f1=0kHz, 10kHz, 20kHz, 30kHz, for example, 5, 6, 3, 4, the maximum value is 6, and the corresponding f1 is 10kHz, then the determined frequency offset value is 10kHz.
[0099] In the embodiment of the present application, by determining multiple first frequency points in the frequency offset range corresponding to the spread spectrum signal, taking each first frequency point in the multiple first frequency points as an index, taking each first frequency point in the multiple first frequency points as a second frequency point, traversing multiple second frequency points, and offsetting the ideal modulation signal to the second frequency point and the third frequency point respectively, based on the offset signal corresponding to the second frequency point, the peak-to-average ratio corresponding to the second frequency point is obtained, and based on the offset signal corresponding to the third frequency point, the peak-to-average ratio corresponding to the third frequency point is obtained, based on the peak-to-average ratios corresponding to the multiple first frequency points and the peak-to-average ratios corresponding to the third frequency point, the peak-to-average ratio corresponding to each first frequency point is determined, and then the first frequency point corresponding to the largest peak-to-average ratio among the peak-to-average ratios corresponding to the multiple first frequency points is determined as the frequency offset value. Thus, the frequency offset value is searched within the frequency offset range by the first frequency point and the second frequency point, thereby improving the accuracy of the frequency offset value.
[0100] Figure 6 A schematic diagram of a flow chart of another spread spectrum signal acquisition method provided in an embodiment of the present application.
[0101] like Figure 6 As shown, the spread spectrum signal acquisition method may include:
[0102] Step 601, respectively moving the sliding window for the i-th time in a plurality of first data packets to extract a segment of first synchronization code data from each first data packet; wherein each segment of first synchronization code data includes M first synchronization code data.
[0103] In the present application, step 601 may be implemented in any of the embodiments of the present application, and the present application does not limit this and will not elaborate on it.
[0104] Step 602: Perform a conjugate operation on each of the M first synchronization code data and its corresponding constellation diagram data to obtain M first data.
[0105] In the present application, the constellation diagram data corresponding to each first synchronization code data is known. Assuming that each segment of first synchronization code data includes M first synchronization code data, each first synchronization code data in the M first synchronization code data can be conjugated with its corresponding constellation diagram data to obtain M first data.
[0106] For example, the jth segment of the first synchronization code data can be expressed as d_j={d_j_1, d_j_2, …, d_j_M}, where the value of j is 1, 2, …, D, and d_j and its corresponding constellation data star={star_1, star_2, …, star_M} can be conjugated to obtain E_j={e_j_1, e_j_2, …, e_j_M}, where there are M first data in E_j. Among them, the first data e_j_k is obtained by conjugating d_j_k with its corresponding constellation data star_k, that is, e_j_k=d_j_k*conj(star_k), and conj(*) represents the conjugation operation.
[0107] Step 603: divide the M first data into P segments, and add the Q first data in each segment to obtain P second data.
[0108] In the present application, the M first data can be evenly divided into P segments without overlap, each segment has Q first data, and the Q first data in each segment can be added to obtain P second data. Wherein, P and Q are positive integers. Thus, each segment of the first synchronization code data can be segmented and accumulated to obtain P segmented accumulation results corresponding to each segment of the first synchronization code data.
[0109] For example, the M first data in E_j={e_j_1, e_j_2, …, e_j_M} are divided into P segments, and the Q numbers in each segment are summed to obtain F_accu_j={F_j_1, F_j_2, …, F_j_P}. Among them, F_j_1=e_j_1+e_j_2+ …+e_j_Q, F_j_2=e_j_(Q+1)+e_j_(Q+2)+ …+e_j_(2Q), and the rest are deduced by analogy.
[0110] Step 604: sequentially concatenate P second data corresponding to the multiple segments of first synchronization code data to obtain a first data sequence.
[0111] In the present application, each segment of first synchronization code data corresponds to P second data, and the P second data corresponding to multiple segments of first synchronization code data can be sequentially spliced to obtain a first data sequence.
[0112] For example, there are D segments of first synchronization code data, among which the P second data of the j-th segment of the first synchronization code data are expressed as F_accu_j={F_j_1, F_j2,…, F_j_P}, and the value of j is 1, 2,…, D. The P second data corresponding to the D segments of the first synchronization code data can be forced to be spliced in sequence to obtain a first data sequence G={F_1_1, F_1_2,…, F_1_P, F_2_1, F_2_2,…, F_2_P,…, F_D_1, F_D_2,…, F_D_P}.
[0113] Step 605, respectively moving the sliding window for the i-th time in the plurality of second data packets to extract a segment of second synchronization code data from each second data packet; wherein each segment of second synchronization code data includes M second synchronization code data.
[0114] In the present application, step 605 may be implemented in any of the embodiments of the present application, and the present application does not limit this and will not elaborate on it.
[0115] Step 606: Perform a conjugate operation on each second synchronization code data in the M second synchronization code data and its corresponding constellation diagram data to obtain M third data.
[0116] In the present application, the constellation diagram data corresponding to each second synchronization code data is known. Assuming that each segment of second synchronization code data includes M second synchronization code data, each second synchronization code data in the M second synchronization code data can be conjugated with its corresponding constellation diagram data to obtain M second data.
[0117] Step 607: divide the M third data into P segments, and add the Q third data in each segment to obtain P fourth data.
[0118] In the present application, the M third data can be evenly divided into P segments without overlap, each segment has Q third data, and the Q third data in each segment can be added to obtain P fourth data. Wherein, P and Q are positive integers. Thus, each segment of the second synchronization code data can be segmented and accumulated to obtain P segmented accumulation results corresponding to each segment of the second synchronization code data.
[0119] Step 608: sequentially concatenate P fourth data corresponding to the multiple segments of second synchronization code data to obtain a second data sequence.
[0120] In the present application, each segment of second synchronization code data corresponds to P fourth data, and the P fourth data corresponding to multiple segments of second synchronization code data can be sequentially spliced to obtain a second data sequence.
[0121] It can be understood that the method of obtaining the second data sequence in steps 606 to 608 is similar to the method of obtaining the first data sequence in steps 603 to 605.
[0122] Step 609 , performing FFT on the first data sequence and the second data sequence respectively to obtain a first peak-to-average ratio corresponding to the first data sequence and a second peak-to-average ratio corresponding to the second data sequence.
[0123] Step 610: Determine the capture output of the spread spectrum signal according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times.
[0124] In the present application, steps 609 to 610 may be implemented in any of the embodiments of the present application, and the present application does not limit this and will not elaborate on it.
[0125] Exemplarily, the capture output of the spread spectrum signal may be determined using the following formula:
[0126] s=F(max[max(p 11 ,p 21 ),...,max(p 1i ,p 2i ),...,max(p 1N ,p 2N )]) (1)
[0127]
[0128] L 1i _max=max(h 1i _1*h 1i _1,h 1i _2*h 1i _2,...h 1i _R*h 1i _R) (3)
[0129] FFT(G 1i )={h 1i _1,h 1i _2,...,h 1i _R} (4)
[0130] G 1i ={F 1i _1_1,…,F 1i _1_P,...,F 1i _j_1,…,F 1i _j_P,...,F 1i _D_1,…,F 1i _D_P}(5)
[0131] Where, s represents the capture output of the spread spectrum signal; F represents the function that determines the capture output of the spread spectrum signal; N represents the number of sliding times of the sliding window; p 1i represents the first peak-to-average ratio obtained by moving the sliding window for the i-th time; p 2i represents the second peak-to-average ratio obtained by moving the sliding window for the i-th time; L 1i _max represents the maximum power obtained by moving the sliding window for the ith time when the spread spectrum signal is mixed with the center frequency as the mixing frequency; L 1i_mean represents the average power obtained by moving the sliding window for the ith time when the spread spectrum signal is mixed with the center frequency as the mixing frequency; G 1i represents a first data sequence obtained by concatenating the accumulated results of the D-segment first synchronization code data extracted by the i-th moving sliding window when the spread spectrum signal is mixed with the center frequency as the mixing frequency; F 1i _j_1,...,F 1i _j_P represents the cumulative result of the jth segment of the first synchronization code data extracted by the i-th moving sliding window when the spread spectrum signal is mixed with the center frequency as the mixing frequency. 2i The calculation method of p 1i The same is true for the above, so I will not go into details.
[0132] In the embodiment of the present application, when obtaining the first data sequence and the second data sequence, the peak-to-average ratio is obtained by forcibly splicing the segmented accumulated data and then performing spectrum analysis, thereby reducing the complexity and improving the processing efficiency.
[0133] The spread spectrum signal capture method of the embodiment of the present application can extract the best sampling point data at the location of the synchronization head after mixing the received data packet containing multiple synchronization headers according to the signal center frequency, and then accumulate each section of the best sampling point data in small sections, and force the accumulation results of each small section to be spliced and combined into a continuous data vector (i.e., the first data sequence mentioned above), and perform spectrum analysis on the data vector to calculate the peak-to-average ratio a. For the received data containing multiple synchronization headers, the mixing time-frequency point value is additionally increased by a frequency offset value on the basis of the center frequency point, and the best sampling point data at the location of the synchronization head is extracted after mixing, and then accumulate each section of the best sampling point data in small sections, and force the accumulation results of each small section to be spliced and combined into a continuous data vector (i.e., the second data sequence mentioned above), and perform spectrum analysis on the data vector to calculate the peak-to-average ratio b. Each time the sliding window is moved, the maximum value of the two peak-to-average ratios is obtained, and after the sliding window is moved in the data packet, the position with the largest peak-to-average ratio is selected as the capture output.
[0134] The spread spectrum signal capture method of the embodiment of the present application adopts the method of forced splicing of the segmented accumulated data and then performs spectrum analysis to obtain the peak-to-average ratio, and uses frequency offset to solve the frequency ambiguity problem caused by forced splicing. In addition, the spread spectrum signal capture method of the embodiment of the present application can have the characteristics of coherent capture, but can adapt to a lower signal-to-noise ratio than coherent capture, that is, the probability of successful capture of this method is higher under the same signal-to-noise ratio.
[0135] In order to implement the above embodiment, the embodiment of the present application also proposes a spread spectrum signal capture device. Figure 7 A schematic diagram of the structure of a spread spectrum signal capture device provided in an embodiment of the present application.
[0136] like Figure 7 As shown, the spread spectrum signal acquisition device 700 may include:
[0137] The first extraction module 710 is used to move the sliding window for the i-th time in each of the multiple first data packets to extract a segment of first synchronization code data from each first data packet; wherein the multiple first data packets are obtained by mixing the spread spectrum signal with the center frequency of the local oscillation signal as the mixing frequency, and the value of i is 1, 2, ..., N, where N is an integer;
[0138] A first acquisition module 720, configured to accumulate each segment of first synchronization code data, and concatenate the accumulation results of multiple segments of first synchronization code data to obtain a first data sequence;
[0139] The second extraction module 730 is used to move the sliding window for the i-th time in each of the plurality of second data packets to extract a second synchronization code data segment from each of the second data packets; wherein the plurality of second data packets are obtained by mixing the spread spectrum signal with the sum of the center frequency and the frequency offset value as the mixing frequency, and the number of the second data packets is the same as the number of the first data packets;
[0140] A second acquisition module 740 is used to accumulate each segment of second synchronization code data and concatenate the accumulation results of multiple segments of second synchronization code data to obtain a second data sequence;
[0141] A third acquisition module 750 is used to perform fast Fourier transform FFT on the first data sequence and the second data sequence respectively to obtain a first peak-to-average ratio corresponding to the first data sequence and a second peak-to-average ratio corresponding to the second data sequence;
[0142] The first determination module 760 is configured to determine the capture output of the spread spectrum signal according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times.
[0143] In a possible implementation of the embodiment of the present application, the device may further include:
[0144] A second determination module, used to determine a plurality of first frequency points in a frequency offset range corresponding to the spread spectrum signal;
[0145] A traversal module, used to use each first frequency point in a plurality of first frequency points as an index, use each first frequency point in a plurality of first frequency points as a second frequency point, traverse a plurality of second frequency points, and offset the ideal modulation signal by the second frequency point and a third frequency point respectively, wherein the third frequency point is the sum of the first frequency point and the second frequency point, and the ideal modulation signal and the spread spectrum signal are generated based on the same communication protocol;
[0146] A fourth acquisition module, used to obtain a peak-to-average ratio corresponding to the second frequency point according to the offset signal corresponding to the second frequency point, and to obtain a peak-to-average ratio corresponding to the third frequency point according to the offset signal corresponding to the third frequency point;
[0147] A third determination module, used to determine the peak-to-average ratio corresponding to each first frequency point from the peak-to-average ratios corresponding to the plurality of second frequency points and the peak-to-average ratios corresponding to the plurality of third frequency points;
[0148] The fourth determination module is used to determine the first frequency point corresponding to the largest peak-to-average ratio among the peak-to-average ratios corresponding to the plurality of first frequency points as the frequency offset value.
[0149] In a possible implementation of the embodiment of the present application, the third determining module is used to:
[0150] The maximum peak-to-average ratio between the peak-to-average ratio corresponding to each second frequency point and the peak-to-average ratio corresponding to each third frequency point is used as the first target peak-to-average ratio corresponding to each second frequency point;
[0151] The maximum peak-to-average ratio among the first target peak-to-average ratios corresponding to the plurality of second frequency points is used as the peak-to-average ratio corresponding to the first frequency point.
[0152] In a possible implementation of the embodiment of the present application, each segment of first synchronization code data includes M first synchronization code data, where M is a positive integer, and the first acquisition module 720 is used to:
[0153] Performing a conjugate operation on each first synchronization code data in the M first synchronization code data and its corresponding constellation diagram data to obtain M first data;
[0154] Divide the M first data into P segments, and add the Q first data in each segment to obtain P second data, where P and Q are positive integers;
[0155] The P second data corresponding to the multiple segments of first synchronization code data are sequentially spliced to obtain a first data sequence.
[0156] In a possible implementation of the embodiment of the present application, each segment of second synchronization code data includes M second synchronization code data, where M is a positive integer, and the second acquisition module 740 is used to:
[0157] Performing a conjugate operation on each second synchronization code data in the M second synchronization code data and its corresponding constellation diagram data to obtain M third data;
[0158] Divide the M third data into P segments, and add the Q third data in each segment to obtain P fourth data, where P and Q are positive integers;
[0159] The P fourth data corresponding to the multiple segments of second synchronization code data are sequentially spliced to obtain a second data sequence.
[0160] In a possible implementation of the embodiment of the present application, the first determining module 760 is configured to:
[0161] Determine the maximum peak-to-average ratio between the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window each time as the second target peak-to-average ratio;
[0162] The position of the maximum peak-to-average ratio value among the second target peak-to-average ratio values corresponding to the N moving sliding windows is used as the capture output of the spread spectrum signal.
[0163] It should be noted that the explanation of the aforementioned spread spectrum signal capture method embodiment is also applicable to the spread spectrum signal capture device of this embodiment, and will not be repeated here.
[0164] In a possible implementation manner of the embodiment of the present application, the capture output of the spread spectrum signal is determined by the following formula:
[0165] s=F(max[max(p 11 ,p 21 ),…,max(p 1i ,p 2i ),...,max(p 1N ,p 2N )]);in,
[0166]
[0167] L 1i _max=max(h 1i _1*h 1i _1,h 1i _2*h 1i _2,...h 1i _R*h 1i _R);
[0168] FFT(G 1i )={h 1i _1,h 1i _2,...,h 1i _R};
[0169] G 1i ={F 1i _1_1,…,F 1i _1_P,...,F 1i _j_1,…,F 1i _j_P,...,F 1i _D_1,…,F 1i _D_P};
[0170] Wherein, s represents the capture output of the spread spectrum signal; F represents the function for determining the capture output of the spread spectrum signal; N represents the number of sliding times of the sliding window; p 1i represents the first peak-to-average ratio obtained by moving the sliding window for the i-th time; p 2i represents the second peak-to-average ratio obtained by moving the sliding window for the i-th time; L 1i _max represents the maximum power obtained by moving the sliding window for the ith time when mixing the spread spectrum signal with the center frequency as the mixing frequency; L 1i _mean represents the average power obtained by moving the sliding window for the ith time when mixing the spread spectrum signal with the center frequency as the mixing frequency; G 1i represents the first data sequence obtained by splicing the accumulated results of the D-segment first synchronization code data extracted by the i-th moving sliding window when mixing the spread spectrum signal with the center frequency as the mixing frequency; F 1i _j_1,...,F 1i _j_P represents the cumulative result of extracting the jth segment of the first synchronization code data by the i-th moving sliding window when mixing the spread spectrum signal with the center frequency as the mixing frequency.
[0171] In the embodiment of the present application, by moving the sliding window for the i-th time in multiple first data packets, a segment of first synchronization code data is extracted from each first data packet, and each segment of first synchronization code data is accumulated, and the accumulated results of multiple segments of first synchronization code data are spliced to obtain a first data sequence, and the sliding window is moved for the i-th time in multiple second data packets to extract a segment of second synchronization code data from each second data packet, and each segment of second synchronization code data is accumulated, and the accumulated results of multiple segments of second synchronization code data are spliced to obtain a second data sequence, and the first data sequence and the second data sequence are respectively subjected to FFT to obtain a first peak-to-average ratio and a second peak-to-average ratio, and then the capture output of the spread spectrum signal is determined according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times. Therefore, by adopting the spectrum analysis after splicing the segmented accumulated data to obtain the peak-to-average ratio, and using the frequency offset to solve the frequency ambiguity problem caused by forced splicing, it is not only suitable for scenes with low signal-to-noise ratio, but also has low implementation complexity.
[0172] In order to implement the above embodiments, the present application also proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the above method embodiments is implemented.
[0173] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the above method embodiments is implemented.
[0174] In order to implement the above embodiments, the present application also proposes a computer program product on which a computer program is stored. When the computer program is executed by a processor, the method described in the above method embodiments is implemented.
[0175] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 8 As shown, the computer device may include:
[0176] A memory 801 storing executable program codes;
[0177] a processor 802 coupled to the memory 801;
[0178] The processor 802 calls the executable program code stored in the memory 801 to execute the spread spectrum signal capture method provided by any embodiment of the present application.
[0179] The computer device embodiment and the method embodiment are embodiments based on the same inventive concept, and the relevant parts can be referenced to each other. The computer device embodiment corresponds to the method embodiment and has the same technical effect as the method embodiment. For specific description, refer to the method embodiment.
[0180] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0181] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0182] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A spread spectrum signal acquisition method, characterized in that: include: Moving the sliding window for the i-th time in each of the plurality of first data packets respectively to extract a segment of first synchronization code data from each of the first data packets; wherein the plurality of first data packets are obtained by mixing the spread spectrum signal with the center frequency of the local oscillation signal as the mixing frequency, and the value of i is 1, 2, ..., N, where N is a positive integer; Accumulate each segment of first synchronization code data, and concatenate the accumulation results of multiple segments of first synchronization code data to obtain a first data sequence; Moving the sliding window for the i-th time in each of the plurality of second data packets respectively to extract a second synchronization code data segment from each of the second data packets; wherein the plurality of second data packets are obtained by mixing the spread spectrum signal with the sum of the center frequency and the frequency offset value as the mixing frequency; Accumulating each segment of the second synchronization code data, and concatenating the accumulation results of multiple segments of the second synchronization code data to obtain a second data sequence; Performing a fast Fourier transform (FFT) on the first data sequence and the second data sequence respectively to obtain a first peak-to-average ratio value corresponding to the first data sequence and a second peak-to-average ratio value corresponding to the second data sequence; The capture output of the spread spectrum signal is determined according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times.
2. The method according to claim 1, characterized in that Also includes: Determine a plurality of first frequency points in a frequency offset range corresponding to the spread spectrum signal; Taking each of the multiple first frequency points as an index, taking each of the multiple first frequency points as a second frequency point, traversing multiple second frequency points, and offsetting the ideal modulation signal by the second frequency point and a third frequency point respectively, wherein the third frequency point is the sum of the first frequency point and the second frequency point, and the ideal modulation signal and the spread spectrum signal are generated based on the same communication protocol; Obtaining a peak-to-average ratio corresponding to the second frequency point according to the shifted signal corresponding to the second frequency point, and obtaining a peak-to-average ratio corresponding to the third frequency point according to the shifted signal corresponding to the third frequency point; Determine the peak-to-average ratio corresponding to each of the first frequency points from the peak-to-average ratios corresponding to the plurality of second frequency points and the peak-to-average ratios corresponding to the plurality of third frequency points; A first frequency point corresponding to the largest peak-to-average ratio among the peak-to-average ratios corresponding to the multiple first frequency points is determined as the frequency offset value.
3. The method according to claim 2, characterized in that The determining the peak-to-average ratio corresponding to each of the first frequency points from the peak-to-average ratios corresponding to the plurality of second frequency points and the peak-to-average ratios corresponding to the plurality of third frequency points includes: The maximum peak-to-average ratio between the peak-to-average ratio corresponding to each of the second frequency points and the peak-to-average ratio corresponding to each of the third frequency points is used as the first target peak-to-average ratio corresponding to each of the second frequency points; The maximum peak-to-average ratio among the first target peak-to-average ratios corresponding to the multiple second frequency points is used as the peak-to-average ratio corresponding to the first frequency point.
4. The method according to claim 1, characterized in that Each segment of the first synchronization code data includes M first synchronization code data, where M is a positive integer. Each segment of the first synchronization code data is accumulated, and the accumulated results of multiple segments of the first synchronization code data are spliced to obtain a first data sequence, including: Performing a conjugate operation on each first synchronization code data in the M first synchronization code data and its corresponding constellation diagram data to obtain M first data; Divide the M first data into P segments, and add the Q first data in each segment to obtain P second data, where P and Q are positive integers; The P second data corresponding to the multiple segments of first synchronization code data are sequentially spliced to obtain the first data sequence.
5. The method according to claim 1, characterized in that Each segment of the second synchronization code data includes M second synchronization code data, where M is a positive integer. Each segment of the second synchronization code data is accumulated, and the accumulated results of multiple segments of the second synchronization code data are spliced to obtain a second data sequence, including: Performing a conjugate operation on each second synchronization code data in the M second synchronization code data and its corresponding constellation diagram data to obtain M third data; Divide the M third data into P segments, and add Q third data in each segment to obtain P fourth data, where P and Q are positive integers; The P fourth data corresponding to the multiple segments of second synchronization code data are sequentially spliced to obtain the second data sequence.
6. The method according to claim 1, characterized in that Determining the capture output of the spread spectrum signal according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times includes: Determine the maximum peak-to-average ratio between the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window each time as the second target peak-to-average ratio; The position of the maximum peak-to-average ratio value among the second target peak-to-average ratio values obtained by moving the sliding window N times is used as the capture output of the spread spectrum signal.
7. The method according to claim 1, characterized in that The capture output of the spread spectrum signal is determined using the following formula: s=F(max[max(p 11 ,p 21 ),…,max(p 1i ,p 2i ),...,max(p 1N ,p 2N )]);in, L 1i _max=max(h 1i _1*h 1i _1,h 1i _2*h 1i _2,…h 1i _R*h 1i _R); FFT(G 1i )={h 1i _1,h 1i _2,…,h 1i _R}; G 1i ={F 1i _1_1,…,F 1i _1_P,...,F 1i _j_1,…,F 1i _j_P,...,F 1i _D_1,…,F 1i _D_P}; Wherein, s represents the capture output of the spread spectrum signal; F represents the function for determining the capture output of the spread spectrum signal; N represents the number of sliding times of the sliding window; p 1i represents the first peak-to-average ratio obtained by moving the sliding window for the i-th time; p 2i represents the second peak-to-average ratio obtained by moving the sliding window for the i-th time; L 1i _max represents the maximum power obtained by moving the sliding window for the ith time when mixing the spread spectrum signal with the center frequency as the mixing frequency; L 1i _mean represents the average power obtained by moving the sliding window for the ith time when mixing the spread spectrum signal with the center frequency as the mixing frequency; G 1i represents the first data sequence obtained by splicing the accumulated results of the D-segment first synchronization code data extracted by the i-th moving sliding window when mixing the spread spectrum signal with the center frequency as the mixing frequency; F 1i _j_1,...,F 1i _j_P represents the cumulative result of extracting the jth segment of the first synchronization code data by the i-th moving sliding window when mixing the spread spectrum signal with the center frequency as the mixing frequency.
8. A spread spectrum signal acquisition device, characterized in that: include: A first extraction module is used to move the sliding window for the i-th time in each of the plurality of first data packets to extract a segment of first synchronization code data from each of the first data packets; wherein the plurality of first data packets are obtained by mixing the spread spectrum signal with the center frequency of the local oscillation signal as the mixing frequency, and the value of i is 1, 2, ..., N, where N is an integer; A first acquisition module, configured to accumulate each segment of first synchronization code data and concatenate the accumulated results of multiple segments of first synchronization code data to obtain a first data sequence; a second extraction module, configured to move the sliding window for the ith time in each of the plurality of second data packets, so as to extract a segment of second synchronization code data from each of the second data packets; wherein the plurality of second data packets are obtained by mixing the spread spectrum signal with the sum of the center frequency and the frequency offset value as the mixing frequency, and the number of the second data packets is the same as the number of the first data packets; A second acquisition module is used to accumulate each segment of second synchronization code data and splice the accumulation results of multiple segments of second synchronization code data to obtain a second data sequence; a third acquisition module, configured to perform fast Fourier transform (FFT) on the first data sequence and the second data sequence respectively, so as to obtain a first peak-to-average ratio corresponding to the first data sequence and a second peak-to-average ratio corresponding to the second data sequence; The first determination module is used to determine the capture output of the spread spectrum signal according to the first peak-to-average ratio and the second peak-to-average ratio obtained by moving the sliding window N times.
9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Spread spectrum signal receiver synchronization method and device
CN114629509A
Method, device and equipment for rapidly capturing primary synchronization signal
CN115695131A
Folding capture method of direct sequence spread spectrum long code
CN116318245A
Method and Apparatus for Dynamic Channel Selection in a Digital Chaos Cooperative Network
US20180084581A1