A method, system, medium and electronic device for capturing spread spectrum codes
By extracting common factors and combining them with the received signal segments, resource sharing between spread spectrum codes is achieved, and the problems of slow capture speed and high resource consumption in the prior art are solved, which significantly improves the efficiency of spread spectrum code capture.
Patent Information
- Application Number
- CN202410143815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-02-01
AI Technical Summary
In the existing spread spectrum code capture technology, spread spectrum codes are independent of each other and the computing resources are not shared, resulting in slow capture speed, high resource consumption and large power consumption.
By extracting common factors, segmenting the received signal and combining it with each data segment, short correlation values are obtained and stored in the memory, and searching the target short correlation values using the common factor address index to achieve the goal between multiple spreading codes resource sharing reduces the amount of computing.
It improves the capture speed, reduces resource consumption and power consumption, and achieves the efficiency of spread spectrum code capture.
Smart Images

Figure CN117978202B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication coding, and in particular to a spread spectrum code capture method, system, medium and electronic equipment. Background Art
[0002] Spread spectrum communication technology is an information technology invented by Hedy Lamarr, namely spread spectrum communication technology. Its basic feature is that the bandwidth of the signal used to transmit information is much larger than the bandwidth of the information itself. Spread spectrum communication has good anti-interference characteristics and good ranging characteristics. At the receiving end, the received signal needs to be despread to recover the information. Despreading requires searching for the spread spectrum code from the signal first. The search for the spread spectrum code requires the use of matched filtering technology to solve the correlation value between the received signal and the corresponding spread spectrum code.
[0003] Existing spread spectrum code capture technologies are all based on matched filtering of the full code period, and different spread spectrum codes are independent of each other, computing resources are not shared, and the amount of calculation is large, resulting in slow capture speed, high resource consumption, and high power consumption. Summary of the invention
[0004] In view of the deficiencies in the prior art, the present invention provides a spread spectrum code capture method, system, medium and electronic device, which solve the problems in the prior art that different spread spectrum codes are independent of each other, computing resources are not shared, the amount of computing is large, resulting in slow capture speed, high resource consumption and high power consumption.
[0005] At least one embodiment of the present invention provides a spread spectrum code acquisition method, comprising:
[0006] Acquire multiple spreading codes and multiple common factors, wherein each of the common factors has the same length;
[0007] Down-converting, filtering and sampling the received signal to obtain input data, wherein the received signal is characterized as data obtained by modulating the target signal using the spread spectrum code;
[0008] Segmenting the input data according to the length of a single common factor to determine a plurality of data segments;
[0009] Combining each of the data segments with each of the common factors to obtain a plurality of short correlation values corresponding to each of the data segments, and storing all of the short correlation values in a storage;
[0010] For each of the spreading codes, searching the short correlation value from the storage according to preset requirements, determining a plurality of target short correlation values, and accumulating the plurality of target short correlation values to determine a target correlation value;
[0011] For each of the spreading codes, it is determined whether the spreading code captures the target signal according to the target correlation value.
[0012] The technical solution disclosed in the present invention has at least the following beneficial effects:
[0013] This method extracts common factors to share the capture resources of different spread spectrum codes, greatly reducing the amount of calculation, thereby increasing the capture speed and reducing resource consumption and power consumption.
[0014] In a spread spectrum code acquisition method provided by one embodiment of the present invention, each of the data segments is combined with each of the common factors to obtain a plurality of short correlation values corresponding to each of the data segments, and all the short correlation values are stored in a memory, including:
[0015] Performing cumulative multiplication and addition operations on each of the data segments and each of the common factors to obtain a plurality of short correlation values corresponding to each of the data segments;
[0016] A plurality of short correlation values corresponding to each data segment are stored in a preset position of the memory, wherein the value of the common factor corresponding to the short correlation value is used as the address index of the preset position.
[0017] In a spread spectrum code acquisition method provided by one embodiment of the present invention, searching the short correlation value from the storage according to a preset requirement to determine a plurality of target short correlation values includes:
[0018] Segment the spreading code according to the length of a single common factor to obtain a plurality of spreading code segments corresponding to the plurality of data segments one by one;
[0019] For each of the spread spectrum code segments, among the multiple short correlation values corresponding to the data segment corresponding to the spread spectrum code segment, the binary number of the spread spectrum code segment is used as an index to search for the address of the value of the common factor that is the same as the binary number, and the short correlation value stored in the address is used as the target short correlation value.
[0020] In a method for acquiring a spread spectrum code provided by one embodiment of the present invention, for each spread spectrum code, judging whether the spread spectrum code has captured a target signal according to the target correlation value includes:
[0021] For each of the spread spectrum codes, a signal-to-noise ratio is calculated using the corresponding target correlation value, and the signal-to-noise ratio is used to determine whether the spread spectrum code captures the target signal.
[0022] At least one embodiment of the present invention further provides a spread spectrum code acquisition system, comprising:
[0023] An input module is configured to obtain a plurality of spread spectrum codes and a plurality of common factors, wherein each of the common factors has the same length;
[0024] A data acquisition module, which down-converts, filters and samples a received signal to obtain input data, wherein the received signal is characterized as data obtained by modulating the target signal using the spread spectrum code;
[0025] A data segmentation module, segmenting the input data according to the length of a single common factor to determine a plurality of data segments;
[0026] a short correlation value acquisition module, combining each of the data segments with each of the common factors to acquire a plurality of short correlation values corresponding to each of the data segments, and storing all of the short correlation values in a storage;
[0027] a target correlation value acquisition module, for each of the spreading codes, searching the short correlation value from the storage according to preset requirements, determining a plurality of target short correlation values, and accumulating the plurality of target short correlation values to determine a target correlation value;
[0028] The judging module judges, for each of the spreading codes, whether the spreading code captures the target signal according to the target correlation value.
[0029] In a spread spectrum code acquisition method system provided by one embodiment of the present invention, the short correlation value acquisition module includes:
[0030] Performing cumulative multiplication and addition operations on each of the data segments and each of the common factors to obtain a plurality of short correlation values corresponding to each of the data segments;
[0031] A plurality of short correlation values corresponding to each data segment are stored in a preset position of the memory, wherein the value of the common factor corresponding to the short correlation value is used as the address index of the preset position.
[0032] In a spread spectrum code acquisition method system provided by one embodiment of the present invention, the target correlation value acquisition module includes:
[0033] Segment the spreading code according to the length of a single common factor to obtain a plurality of spreading code segments corresponding to the plurality of data segments one by one;
[0034] For each of the spread spectrum code segments, among the multiple short correlation values corresponding to the data segment corresponding to the spread spectrum code segment, the binary number of the spread spectrum code segment is used as an index to search for the address of the value of the common factor that is the same as the binary number, and the short correlation value stored in the address is used as the target short correlation value.
[0035] In a spread spectrum code acquisition method system provided by one embodiment of the present invention, the judgment module includes:
[0036] For each of the spread spectrum codes, a signal-to-noise ratio is calculated using the corresponding target correlation value, and the signal-to-noise ratio is used to determine whether the spread spectrum code captures the target signal.
[0037] At least one embodiment of the present invention further provides a computer-readable medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the steps of a spread spectrum code acquisition method as described above.
[0038] At least one embodiment of the present invention further provides an electronic device, including a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor implements the steps of the above-mentioned spread spectrum code acquisition method when executing the program. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic diagram of a flow chart of a method for acquiring a spread spectrum code according to the present invention;
[0040] Figure 2 A logic processing diagram of a method for acquiring a spread spectrum code according to the present invention;
[0041] Figure 3 The figure is a simplified schematic diagram of a spread spectrum code acquisition system according to the present invention. DETAILED DESCRIPTION
[0042] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0043] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0044] The present invention provides a method for acquiring a spread spectrum code. Figure 1 As shown, including:
[0045] Acquire multiple spreading codes and multiple common factors, wherein the length of each common factor is the same, and the length of each common factor can be adjusted accordingly according to the code length of the spreading code, which is not limited here;
[0046] The received signal is down-converted, filtered and sampled to obtain input data, wherein the received signal is characterized as data obtained by modulating the target signal using a spread spectrum code;
[0047] Specifically, the formula for obtaining input data is as follows:
[0048] S=Ae^(iωt)D(t)C(t)
[0049] Where S is the input data, A is the signal amplitude, ω is the carrier angular frequency, D(t) is the data obtained by modulating the target signal according to the spread spectrum code at time t, and C(t) is the spread spectrum code at time t;
[0050] Segment the input data according to the length of a single common factor to determine a plurality of data segments;
[0051] Combining each data segment with each common factor to obtain a plurality of short correlation values corresponding to each data segment, and storing all the short correlation values in a memory;
[0052] For each spreading code, searching for a short correlation value from a storage according to a preset requirement, determining a plurality of target short correlation values, and accumulating the plurality of target short correlation values to determine a target correlation value;
[0053] For each spreading code, it is determined whether the spreading code captures the target signal according to the target correlation value.
[0054] The technical solution disclosed in the present invention has at least the following beneficial effects:
[0055] This method extracts common factors to share the capture resources of different spread spectrum codes, greatly reducing the amount of calculation, thereby increasing the capture speed and reducing resource consumption and power consumption.
[0056] The process of combining each data segment with each common factor to obtain a plurality of short correlation values corresponding to each data segment and storing all the short correlation values in a memory specifically includes:
[0057] Perform cumulative multiplication and addition operations on each data segment and each common factor to obtain a plurality of short correlation values corresponding to each data segment;
[0058] A plurality of short correlation values corresponding to each data segment are stored in a preset position of the memory, wherein the value of the common factor corresponding to the short correlation value is used as an address index of the preset position.
[0059] Through this setting, the above-mentioned multiple short correlation values can be used as locally shared short correlation values. At this time, when multiple spread spectrum codes need to be captured, the short correlation values can be obtained accordingly according to the addresses of the above-mentioned common factors, thereby realizing multiple spread spectrum codes sharing capture resources and improving the capture speed.
[0060] The process of searching for short correlation values from the storage according to preset requirements and determining a plurality of target short correlation values specifically includes:
[0061] Segment the spreading code according to the length of the single common factor to obtain a plurality of spreading code segments corresponding to the plurality of data segments one by one;
[0062] For each spreading code segment, the binary number of the spreading code segment is used as an index in the data segment and multiple short correlation values corresponding to the spreading code segment to search for the address of the common factor identical to the binary number, and the short correlation value stored in the address is used as the target short correlation value.
[0063] That is, the present invention uses the binary number corresponding to the spread spectrum code segment as an index when the spread spectrum code and the input data are in the same segment, and searches for the short correlation value stored at the address of the common factor of the same size as the binary number as the target short correlation value. Of course, the search process can be applied to multiple spread spectrum codes, so that the capture resources between the spread spectrum codes can be shared.
[0064] For each spreading code, judging whether the spreading code captures the target signal is performed according to the target correlation value, which specifically includes:
[0065] For each spreading code, the signal-to-noise ratio is calculated through the corresponding target correlation value, and the signal-to-noise ratio is used to determine whether the spreading code captures the target signal.
[0066] For example, please refer to Figure 2 As shown;
[0067] Taking the capture of GPS L1 C / A code as an example, the GPS signal adopts a spread spectrum communication method, the code length of the C / A spread spectrum code is 1023, different satellites use different PRN spread spectrum codes, and in this embodiment, a total of 32 spread spectrum codes are taken as an example. Therefore, these 32 spread spectrum codes need to be searched after the receiver is turned on.
[0068] Here, the length of the common factor is selected as 4. At this time, Ls is used to represent the length of the common factor, that is, Ls=4, then the number of common factors Nc=2^4=16, that is, there are 16 common factors with a length of 4, and SC_nc is used to represent different common factors, where nc=0,1,2....Nc-1.
[0069] These 16 different common factors can be represented by numbers 0 to 15. For example, the common factor corresponding to the number 0 is 0000, the common factor corresponding to the number 1 is 0001, the common factor corresponding to the number 2 is 0010, and so on.
[0070] After obtaining the input data according to the formula S = Ae^(iωt)D(t)C(t);
[0071] The input data needs to be processed by downsampling and filtering so that the sampling rate of the input data becomes the same as the code rate of the PRN spread spectrum code, which is 1.023Mhz.
[0072] The input data is then segmented according to the length of a single common factor. Since the corresponding input data cycle length is 1023 chips, the input data is divided into 1023 / 4 = 256 data segments, each of which is Figure 2 It is represented by SD_nd, where nd=0,1,2....Nd-1, Nd=Lc / Ls, Lc is the length of the spread spectrum code, that is, Nd-1 is 256.
[0073] After that, short correlation processing is performed on each data segment;
[0074] The specific method is to perform correlation operation on each data segment with 16 different common factors, specifically, cumulative multiplication and addition operation, to obtain 16 different short correlation values, and then store the 16 short correlation values into corresponding memories with the address of the common factors as indexes. These short correlation values will be used as shared local correlation values by different spread spectrum code correlation operations, and the correlation operation is specifically cumulative multiplication and addition, refer to Figure 2 As shown, the short correlation value between the ndth data segment and the ncth common factor is SCor_nd_nc;
[0075] For 16 short correlation values corresponding to each data segment, the common factors corresponding to the 16 short correlation values are stored in a memory as addresses;
[0076] The spread spectrum code of the satellite to be captured is divided into segments, each segment length is 4, that is, one code period is divided into 1023 / 4=256 spread spectrum code segments, one spread spectrum code segment is LPrn_0_n, where n=0,1,2..255;
[0077] The binary number corresponding to each spread spectrum code segment is used as an index. It should be understood that during the parsing process, the spread spectrum code corresponds to the code segment position of the input data, that is, when parsing one of the spread spectrum code segments, in the data segment corresponding to the spread spectrum code segment, the common factor that is the same as the above binary number among the 16 common factors corresponding to the data segment is found, and the short correlation value corresponding to the common factor is selected as the target short correlation value corresponding to the spread spectrum code segment, that is, a local spread spectrum code has 256 spread spectrum code segments, that is, 256 target short correlation values, and then the 256 target short correlation values are summed, that is, Figure 2 The "Σ" in the equation represents the sum, and the target correlation value used to characterize the entire spread spectrum code can be obtained. Figure 2 The target correlation value is expressed as Cor_Pn;
[0078] Then, the obtained target correlation value is used to calculate its corresponding signal-to-noise ratio, and the corresponding spread spectrum code can be judged according to the signal-to-noise ratio to capture the corresponding target signal, so as to complete the search for the spread spectrum code;
[0079] If the spreading code does not capture the corresponding target signal, then:
[0080] Move the local spreading code and switch to the next code phase, that is, select another spreading code and repeat the above steps until the search for 32 spreading codes is completed;
[0081] Through the above method, it is obvious that different spreading codes can share the above short correlation value to perform capture operation, which greatly reduces the amount of operation, thereby improving the capture speed and reducing resource consumption and power consumption.
[0082] The present invention also provides a spread spectrum code acquisition system, please refer to Figure 3 As shown, including:
[0083] An input module is provided to obtain a plurality of spreading codes and a plurality of common factors, wherein the length of each common factor is the same;
[0084] Down-converting, filtering and sampling the received signal to obtain input data, wherein the received signal is characterized as data obtained by modulating the target signal using the spread spectrum code;
[0085] A data segmentation module segments the input data according to the length of a single common factor to determine multiple data segments;
[0086] A short correlation value acquisition module combines each data segment with each common factor to obtain a plurality of short correlation values corresponding to each data segment, and stores all the short correlation values in a storage;
[0087] A target correlation value acquisition module searches for a short correlation value from a storage according to preset requirements for each spreading code, determines a plurality of target short correlation values, and accumulates the plurality of target short correlation values to determine a target correlation value;
[0088] The judgment module judges, for each spreading code, whether the spreading code captures the target signal according to the target correlation value.
[0089] Furthermore, the short correlation value acquisition module includes:
[0090] Perform cumulative multiplication and addition operations on each data segment and each common factor to obtain a plurality of short correlation values corresponding to each data segment;
[0091] A plurality of short correlation values corresponding to each data segment are stored in a preset position of the memory, wherein the value of the common factor corresponding to the short correlation value is used as an address index of the preset position.
[0092] Furthermore, the target related value acquisition module includes:
[0093] Segment the spreading code according to the length of the single common factor to obtain a plurality of spreading code segments corresponding to the plurality of data segments one by one;
[0094] For each spreading code segment, the binary number of the spreading code segment is used as an index in the data segment and multiple short correlation values corresponding to the spreading code segment to search for the address of the common factor identical to the binary number, and the short correlation value stored in the address is used as the target short correlation value.
[0095] Furthermore, the judgment module includes:
[0096] For each spreading code, the signal-to-noise ratio is calculated through the corresponding target correlation value, and the signal-to-noise ratio is used to determine whether the spreading code captures the target signal.
[0097] At least one embodiment of the present invention further provides a computer-readable medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the steps of a spread spectrum code acquisition method as described above.
[0098] At least one embodiment of the present invention further provides an electronic device, including a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor implements the steps of the above-mentioned spread spectrum code acquisition method when executing the program.
[0099] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A spread spectrum code acquisition method, characterized in that: include: Acquire multiple spreading codes and multiple common factors, wherein each of the common factors has the same length; Down-converting, filtering and sampling the received signal to obtain input data, wherein the received signal is characterized as data obtained by modulating the target signal using the spread spectrum code; Segmenting the input data according to the length of a single common factor to determine a plurality of data segments; Combining each of the data segments with each of the common factors to obtain a plurality of short correlation values corresponding to each of the data segments, and storing all of the short correlation values in a storage; For each of the spreading codes, searching the short correlation value from the storage according to a preset requirement, determining a plurality of target short correlation values, and accumulating the plurality of target short correlation values to determine a target correlation value; For each of the spreading codes, judging, according to the target correlation value, whether the spreading code captures the target signal; wherein each of the data segments is subjected to a cumulative multiplication and addition operation with each of the common factors to obtain a plurality of short correlation values corresponding to each of the data segments; storing a plurality of short correlation values corresponding to each data segment to a preset position of the memory, wherein the value of the common factor corresponding to the short correlation value is used as an address index of the preset position; The spreading code is segmented according to the length of a single common factor to obtain a plurality of spreading code segments corresponding to the plurality of data segments one by one; For each of the spread spectrum code segments, among the multiple short correlation values corresponding to the data segment corresponding to the spread spectrum code segment, the binary number of the spread spectrum code segment is used as an index to search for the address of the value of the common factor that is the same as the binary number, and the short correlation value stored in the address is used as the target short correlation value.
2. A method for acquiring a spread spectrum code according to claim 1, characterized in that: For each spreading code, judging, according to the target correlation value, whether the spreading code captures the target signal includes: For each of the spread spectrum codes, a signal-to-noise ratio is calculated using the corresponding target correlation value, and the signal-to-noise ratio is used to determine whether the spread spectrum code captures the target signal.
3. A spread spectrum code acquisition system, characterized in that: include: An input module is configured to obtain a plurality of spread spectrum codes and a plurality of common factors, wherein each of the common factors has the same length; A data acquisition module, which down-converts, filters and samples a received signal to obtain input data, wherein the received signal is characterized as data obtained by modulating the target signal using the spread spectrum code; A data segmentation module, segmenting the input data according to the length of a single common factor to determine a plurality of data segments; a short correlation value acquisition module, combining each of the data segments with each of the common factors to acquire a plurality of short correlation values corresponding to each of the data segments, and storing all of the short correlation values in a storage; a target correlation value acquisition module, for each of the spreading codes, searching the short correlation value from the storage according to preset requirements, determining a plurality of target short correlation values, and accumulating the plurality of target short correlation values to determine a target correlation value; A judging module, for each of the spreading codes, judging whether the spreading code captures the target signal according to the target correlation value; Among them, the short correlation value acquisition module includes: Performing cumulative multiplication and addition operations on each of the data segments and each of the common factors to obtain a plurality of short correlation values corresponding to each of the data segments; storing a plurality of short correlation values corresponding to each data segment to a preset position of the memory, wherein the value of the common factor corresponding to the short correlation value is used as an address index of the preset position; Among them, the target related value acquisition module includes: Segment the spreading code according to the length of a single common factor to obtain a plurality of spreading code segments corresponding to the plurality of data segments one by one; For each of the spread spectrum code segments, among the multiple short correlation values corresponding to the data segment corresponding to the spread spectrum code segment, the binary number of the spread spectrum code segment is used as an index to search for the address of the value of the common factor that is the same as the binary number, and the short correlation value stored in the address is used as the target short correlation value.
4. A spread spectrum code acquisition system according to claim 3, characterized in that: The judgment module includes: For each of the spread spectrum codes, a signal-to-noise ratio is calculated using the corresponding target correlation value, and the signal-to-noise ratio is used to determine whether the spread spectrum code captures the target signal.
5. A computer-readable medium, characterized in that The computer-readable medium stores instructions, and when the instructions are executed on the terminal device, the terminal device executes the steps of a spread spectrum code acquisition method as claimed in claim 1 or 2.
6. An electronic device comprising a memory, a processor, and a program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the steps of a spread spectrum code acquisition method as claimed in claim 1 or 2 are implemented.
