A method for generating pseudo code for general satellite navigation
By configuring the pseudocode parameter information and matching code generator type, the corresponding pseudocode is generated, which solves the problem of differences in pseudocode generation methods at different frequencies and real-time generation of WEIL codes, and achieves multi-channel support and resource optimization.
Patent Information
- Application Number
- CN202110201781.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-02-23
AI Technical Summary
There are differences in the pseudo-code generation methods at different frequencies in existing satellite navigation systems. In particular, real-time generation of WEIL codes is difficult to achieve, resulting in high resource overhead and the need for multiple pseudo-code generator modules to ensure independence and continuity.
Adopting a general satellite navigation pseudocode generation method, by configuring pseudocode parameter information and matching the code generator type to generate corresponding pseudocode, it supports multi-channel time division multiplexing, only stores the Legendre sequence and writes it to RAM during initialization, reducing resource overhead and redundancy. remaining modules.
It achieves pseudo-code generation for all navigation systems and frequencies, reduces logic resource overhead and redundant modules, improves project management efficiency, and reduces the number of different types of pseudo-code generators.
Smart Images

Figure CN113009527B
Abstract
Description
Technical Field
[0001] The present application relates to the field of satellite communication technology, and in particular to a method for generating a universal satellite navigation pseudo code. Background Art
[0002] At present, the global satellite navigation system is developing rapidly, and there are already navigation systems such as the US GPS, China Beidou, the EU Galileo and Russia GLONASS. The pseudo code types and generation methods used by each navigation system at different frequencies and different development stages are different, and they are still in the process of continuous development and evolution. The spread spectrum code generator is a necessary component of the satellite navigation receiver.
[0003] According to the different characteristics of the current frequency points, for GPS L1, L2, L5, Galileo E5a, E5b, GLONASS G1, G2, BeiDou-2 B3I, B1I, and BeiDou-3 B2a, B2b satellites, the pseudo code uses GOLDEN code, but the pseudo code generating polynomials of different frequency points are also different. BeiDou-3 B1C and GPS L1CD / P use WEIL code, and Galileo satellite E1 uses memory code. The different requirements for pseudo codes at these different frequency points result in the need for multi-mode navigation receivers to generate corresponding pseudo code generator modules.
[0004] In addition, since WEIL codes are generated by Legendre sequences, there is currently no good real-time generation method for Legendre sequences. Therefore, WEIL codes cannot be completely generated in real time through a simple circuit structure. The current common method is to store all WEIL codes to ensure the real-time requirements of pseudocodes.
[0005] At the same time, for the simultaneous tracking of multiple satellites, each channel needs corresponding pseudo code support. Many receivers configure the pseudo code generator for each channel separately to ensure the independence and continuity of each channel tracking. However, configuring the pseudo code generator for each channel according to parameters greatly increases resource overhead. Summary of the invention
[0006] In order to solve the above technical problems, this application proposes the following technical solutions:
[0007] In a first aspect, an embodiment of the present application provides a general satellite navigation pseudocode generation method, the method comprising: configuring parameter information for generating pseudocode, the parameter information comprising Golden code parameter information and WEIL code parameter information; configuring a code generator that matches the pseudocode type according to a pseudocode request; and generating a pseudocode of a corresponding type through the code generator.
[0008] The above implementation method supports all satellites of all frequencies of all navigation systems and supports multi-channel time division multiplexing code acquisition. According to the corresponding parameters of different pseudo codes, the corresponding code generator is generated according to the configured parameters to generate the corresponding pseudo code. Compared with the traditional method, it can greatly reduce the overhead of logical resources, and at the same time, from the perspective of engineering management, it also greatly reduces the redundant modules of different types of pseudo code generators.
[0009] In combination with the first aspect, in a first possible implementation manner of the first aspect, the configuration parameter information for generating pseudocode includes: after obtaining the parameters, storing the parameters in a specified memory address according to the channel, waiting for pseudocode generation and use.
[0010] In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, for the WEIL code, only the Legendre sequence is stored, and the calculated Legendre sequence is written into the designated storage RAM during initialization.
[0011] In combination with the first possible implementation method of the first aspect, in a third possible implementation method of the first aspect, a Golden code generator is configured, and the code generator matching the pseudocode type is configured according to the pseudocode request, including: reading corresponding parameters according to the sequence number and generation address of the code acquisition channel; configuring the shift register initial values u32InitG1 and u32InitG2 for the two linear sequences G1 and G2; configuring the polynomial taps u32CoefG1 and u32CoefG2 for the two linear sequences G1 and G2; configuring the mask values u32MaskG1 and u32MaskG2 for the two linear sequences G1 and G2; configuring the truncation lengths u32TrunckLen1 and u32TrunckLen2 for the two linear sequences G1 and G2; reading in the shift register states of the two linear sequences G1 and G2 of the specified channel and historical information such as the pseudocode count; after completing the parameter configuration, setting the relevant flag high and waiting for the code acquisition signal.
[0012] In combination with the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, a WEIL code generator is configured, and the configuration of the code generator matching the pseudocode type according to the pseudocode request includes: reading corresponding parameters according to the sequence number and generation address of the code acquisition channel; configuring sequence initial values u32PrInit_a and u32PrInit_b for two Legendre sequences; configuring the WEIL code sequence length u32WEILLen and the truncation length u32TruckLen; reading in historical information such as address counts, insertion code counts, and pseudocode counts of two Legendre sequences of the specified channel; after completing the parameter configuration, setting the relevant flags high and waiting for the code acquisition signal.
[0013] In combination with the third possible implementation of the first aspect, in the fifth possible implementation of the first aspect, the code generator generates a corresponding type of pseudocode, including: according to the pseudocode code acquisition signal and the enable switch, driving the two linear sequences G1 and G2 to perform a shift operation based on the configured initial value of the shift register, and starting the code chip count at the same time; when the code chip count reaches the configured truncation length of G1 or G2, the G1 or G2 sequence is restored to the initial value accordingly; according to the configured polynomial taps, the corresponding BIT bits in the two linear sequences G1 and G2 are selected for exclusive OR addition as new input bits; according to the configured mask value, the corresponding BIT bits in the two linear sequences G1 and G2 are selected for exclusive OR addition to obtain the G1 sequence and G2 sequence outputs, and then the modulo 2 sum of the two sequences is used as the Golden code output of the channel; a pseudocode valid flag is generated for convenient use by the subsequent stage.
[0014] In combination with the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, a corresponding type of pseudocode is generated by the code generator, including: according to the pseudocode fetch signal and the enable switch, two Legendre sequences are driven to perform an increment operation based on the configured initial address, and the chip count is started at the same time; if the address reaches the insertion code address position, the counting and address increment are paused, the insertion code is started, and after the insertion operation of the insertion code is completed, the normal counting and address increment are restored; if the chip count reaches the truncation length, the initial configuration is returned; the modulo 2 sum of the two Legendre sequences is used as the WEIL code of the channel; and a pseudocode valid flag is generated for convenient use by the subsequent stage.
[0015] In combination with the fifth or sixth possible implementation manner of the first aspect, in the seventh possible implementation manner of the first aspect, the process further includes saving current state information after generating the pseudocode.
[0016] In combination with the seventh possible implementation method of the first aspect, in the eighth possible implementation method of the first aspect, saving the current state information includes: after the current channel code acquisition is completed, saving the current state of the shift registers of the two linear sequences G1 and G2 and the pseudo-code count to the designated memory, waiting for the next channel code acquisition.
[0017] In combination with the seventh possible implementation method of the first aspect, in the ninth possible implementation method of the first aspect, saving the current status information includes: after the current channel code acquisition is completed, saving the address count, insertion code count and pseudocode count of the two Legendre sequences to the specified memory, waiting for the next channel code acquisition. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of a system framework for generating satellite navigation pseudocode provided in an embodiment of the present application;
[0019] Figure 2A schematic diagram of a flow chart of a method for generating a general satellite navigation pseudo code provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of a Golden code generation method provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of a WEIL code generation method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The present solution is described below in conjunction with the accompanying drawings and specific implementation methods.
[0023] The satellite navigation pseudo code generation method in this application is mainly based on the following system framework, see Figure 1 ,The system framework includes pseudo-code generation module, configuration module, ,expansion interface and multi-channel interface.
[0024] The main function of the configuration module is to complete the working mode of the pseudocode generator through the configuration register. The configuration register includes selecting the pseudocode type, usage (exclusive or polling), generation, initial phase, pseudocode length, generating polynomial, mask configuration, etc.
[0025] The main function of the pseudo code generation module is to generate the corresponding pseudo code according to the specific parameters of the configuration module and driven by the code acquisition signal.
[0026] The main function of the multi-channel interface module is to store some key temporary variables in the process of pseudo-code generation and use in response to the needs of multi-channel time division multiplexing, so as to ensure the independence and continuity of each channel code. The main workflow of the pseudo-code generation module is: receive pseudo-code requests, read historical information according to the channel number, generate pseudo-code based on historical information and parameter configuration, and store the current state after the pseudo-code request is completed.
[0027] Figure 2 A flowchart of a method for generating a general satellite navigation pseudo code provided in an embodiment of the present application is shown in FIG. Figure 2 The general satellite navigation pseudo code generation method provided in this embodiment includes:
[0028] S101, configuring parameter information for generating a pseudo code, wherein the parameter information includes Golden code parameter information and WEIL code parameter information.
[0029] For Golden code generation, the following parameters can be used to generate different Golden codes at multiple frequency points. After the configuration module obtains the parameters, it stores the parameters in the specified memory address according to the channel, waiting for the pseudo code generation module to use them.
[0030] For WEIL code, the present invention only stores Legendre sequence, i.e., 2.046 kbit, which greatly reduces storage resources compared with the complete storage of WEIL code. According to the frequency point, the calculated Legendre sequence is written into the designated storage RAM during initialization, waiting for the pseudo code generation module to read. After the configuration module obtains the parameters, it stores the parameters in the designated memory address according to the channel, waiting for the pseudo code generation module to use.
[0031] S102: According to the pseudocode request, a code generator matching the pseudocode type is configured.
[0032] This embodiment includes configuring a Golden code generator and a WEIL code generator.
[0033] The Golden code generator includes:
[0034] Read the corresponding parameters according to the serial number and generated address of the code acquisition channel.
[0035] Configure the shift register initial values u32InitG1 and u32InitG2 for the two linear sequences G1 and G2.
[0036] Configure polynomial taps u32CoefG1 and u32CoefG2 for the two linear sequences G1 and G2.
[0037] Configure mask values u32MaskG1 and u32MaskG2 for two linear sequences G1 and G2.
[0038] Configure truncation lengths u32TrunckLen1 and u32TrunckLen2 for the two linear sequences G1 and G2.
[0039] Read in the historical information such as the status of the two linear sequences G1 and G2 shift registers and pseudo code counts of the specified channel.
[0040] After completing the parameter configuration, set the relevant flag high and wait for the code acquisition signal.
[0041] Configuring the WEIL code generator includes:
[0042] Read the corresponding parameters according to the serial number and generated address of the code acquisition channel.
[0043] Sequence initialization values u32PrInit_a and u32PrInit_b are configured for two Legendre sequences.
[0044] Configure the WEIL code sequence length u32WEILLen and truncation length u32TruckLen.
[0045] Read the historical information of the address count, insertion code count, and pseudo code count of the two Legendre sequences of the specified channel.
[0046] After completing the parameter configuration, set the relevant flag high and wait for the code acquisition signal.
[0047] S103, generating a pseudo code of a corresponding type by the code generator.
[0048] Figure 3 This is a schematic diagram of the Golden code generation method, see Figure 3 , according to the pseudo-code fetching signal and the enable switch, the two linear sequences G1 and G2 are driven to perform shift operations based on the configured initial value of the shift register, and the chip count is started at the same time. When the chip count reaches the configured truncation length of G1 or G2, the G1 or G2 sequence is restored to the initial value accordingly. According to the configured polynomial taps, the corresponding BIT bits in the two linear sequences G1 and G2 are selected for XOR addition as new input bits. According to the configured mask value, the corresponding BIT bits in the two linear sequences G1 and G2 are selected for XOR addition to obtain the G1 sequence and G2 sequence outputs, and then the modulo 2 sum of the two sequences is used as the Golden code output of the channel. Generate a pseudo-code valid flag for convenient use in the subsequent stage.
[0049] Figure 4 This is a schematic diagram of the WEIL code generation method, see Figure 4 , according to the pseudo code fetch signal and the enable switch, the two Legendre sequences are driven to increment based on the configured initial address, and the chip count is turned on at the same time. If the address reaches the insertion code address position, the count and address increment are paused, and the insertion code is started. After the insertion of the insertion code is completed, the normal count and address increment are restored. If the chip count reaches the truncation length, it returns to the initial configuration. The modulo 2 sum of the two Legendre sequences is used as the WEIL code of the channel. Generate a pseudo code valid flag for easy use in the later stage.
[0050] After Golden code and WEIL code are generated, the current state information is saved. Specifically, for Golden code, after the current channel code acquisition is completed, the current state of the shift registers of the two linear sequences G1 and G2 and the pseudo code count are saved to the specified memory, waiting for the next channel code acquisition. For WEIL code, after the current channel code acquisition is completed, the address count, insertion code count and pseudo code count of the two Legendre sequences are saved to the specified memory, waiting for the next channel code acquisition.
[0051] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0052] Of course, the above description is not limited to the above examples. Technical features not described in the present application can be achieved by or by using existing technologies, which will not be repeated here. The above embodiments and drawings are only used to illustrate the technical solution of the present application and are not limitations of the present application. For example, the present application is only described in detail in combination with and with reference to the preferred implementation methods. Ordinary technicians in this field should understand that the changes, modifications, additions or substitutions made by ordinary technicians in this technical field within the essential scope of the present application do not depart from the purpose of the present application and should also fall within the scope of protection of the claims of the present application.
Claims
1. A general satellite navigation pseudo code generation method, characterized in that: The method comprises: Configure parameter information for generating pseudo code, wherein the parameter information includes Golden code parameter information and WEIL code parameter information; The configuration of the parameter information for generating pseudocode includes: after obtaining the parameters, storing the parameters in a specified memory address according to the channel, waiting for pseudocode generation and use; For WEIL codes, only the Legendre sequence is stored, and the calculated Legendre sequence is written into the designated storage RAM during initialization; According to the pseudo code request, a code generator matching the pseudo code type is configured; Configuring the Golden code generator includes: reading corresponding parameters according to the serial number and generation address of the code acquisition channel; configuring the initial values of the shift registers u32InitG1 and u32InitG2 for the two linear sequences G1 and G2; configuring the polynomial taps u32CoefG1 and u32CoefG2 for the two linear sequences G1 and G2; configuring the mask values u32MaskG1 and u32MaskG2 for the two linear sequences G1 and G2; configuring the truncation lengths u32TrunckLen1 and u32TrunckLen2 for the two linear sequences G1 and G2; reading the shift register states of the two linear sequences G1 and G2 of the specified channel and the pseudo code counting history information; after completing the parameter configuration, setting the relevant flags high and waiting for the code acquisition signal; Configure the WEIL code generator, including: read the corresponding parameters according to the serial number and generation address of the code acquisition channel; configure the sequence initial values u32PrInit_a and u32PrInit_b for the two Legendre sequences; configure the WEIL code sequence length u32WEILLen and the truncation length u32TruckLen; read the address count, insertion code count and pseudo code count history information of the two Legendre sequences of the specified channel; after completing the parameter configuration, set the relevant flag high and wait for the code acquisition signal; Generate a corresponding type of pseudo code by the code generator; When the code generator is a Golden code generator, the code generator generates a corresponding type of pseudo code, including: according to the pseudo code fetching signal and the enable switch, driving the two linear sequences G1 and G2 to perform a shift operation based on the configured initial value of the shift register, and starting the chip count at the same time; when the chip count reaches the configured truncation length of G1 or G2, the G1 or G2 sequence is restored to the initial value accordingly; according to the configured polynomial tap, the corresponding BIT bits in the two linear sequences G1 and G2 are selected for XOR addition as new input bits; according to the configured mask value, the corresponding BIT bits in the two linear sequences G1 and G2 are selected for XOR addition to obtain the G1 sequence and the G2 sequence output, and then the modulo 2 sum of the two sequences is used as the Golden code output of the channel; generating a pseudo code valid flag for convenient use by the subsequent stage; When the code generator is a WEIL code generator, the code generator generates a corresponding type of pseudo code, including: according to the pseudo code fetching signal and the enable switch, two Legendre sequences are driven to perform increment operation based on the configured initial address, and the chip count is started at the same time; if the address reaches the insertion code address position, the counting and address increment are suspended, the insertion code is started, and after the insertion operation of the insertion code is completed, the normal counting and address increment are restored; if the chip count reaches the truncation length, the initial configuration is returned; the modulo 2 sum of the two Legendre sequences is used as the WEIL code of the channel; and a pseudo code valid flag is generated to facilitate the use of the subsequent stage.
2. The method for generating a general satellite navigation pseudo code according to claim 1, characterized in that: It also includes saving current status information after generating pseudocode.
3. The method for generating a general satellite navigation pseudo code according to claim 2, characterized in that: The saving of the current state information includes: after the current channel code acquisition is completed, the current state of the shift registers of the two linear sequences G1 and G2 and the pseudo code count are saved in the designated memory, and the next channel code acquisition is waited for.
4. The method for generating a general satellite navigation pseudo code according to claim 2, characterized in that: The saving of the current state information includes: after the current channel code acquisition is completed, the address counts, the insertion code counts and the pseudo code counts of the two Legendre sequences are saved in a designated memory, and waiting for the next channel code acquisition.
