CN113391331A - Ranging code acquisition method and device, electronic equipment and storage medium - Google Patents

Ranging code acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113391331A
CN113391331A CN202110698866.4A CN202110698866A CN113391331A CN 113391331 A CN113391331 A CN 113391331A CN 202110698866 A CN202110698866 A CN 202110698866A CN 113391331 A CN113391331 A CN 113391331A
Authority
CN
China
Prior art keywords
code
satellite
target satellite
ranging
storage space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110698866.4A
Other languages
Chinese (zh)
Other versions
CN113391331B (en
Inventor
陶长来
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Goke Microelectronics Co Ltd
Original Assignee
Hunan Goke Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Goke Microelectronics Co Ltd filed Critical Hunan Goke Microelectronics Co Ltd
Priority to CN202110698866.4A priority Critical patent/CN113391331B/en
Publication of CN113391331A publication Critical patent/CN113391331A/en
Application granted granted Critical
Publication of CN113391331B publication Critical patent/CN113391331B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/24Acquisition or tracking or demodulation of signals transmitted by the system
    • G01S19/30Acquisition or tracking or demodulation of signals transmitted by the system code related

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The application discloses a method for obtaining ranging codes, which comprises the following steps: when a request for acquiring the ranging code of the target satellite is received, acquiring the G1 code of the target satellite from a G1 code storage space; inquiring the starting position of the G2 code of the target satellite from the G2 phase storage; in the storage space of the G2 code, inquiring the G2 code of the target satellite according to the starting position of the G2 code of the target satellite and the code length of the target satellite; wherein, the G1 codes of all satellites under the same satellite system are the same; the method comprises the steps that all satellites under the same satellite system share a G2 code storage space, and the G2 codes of all the satellites are determined according to the corresponding initial positions; and performing exclusive-or operation on the G1 code and the G2 code to generate the ranging code of the target satellite. The method can effectively reduce the storage space occupied by the ranging code, reduce the occupation of the physical memory and save the circuit area. The application also provides a ranging code acquisition device, electronic equipment and a computer readable storage medium, and the ranging code acquisition device, the electronic equipment and the computer readable storage medium have the beneficial effects.

Description

Ranging code acquisition method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of satellite ranging code technologies, and in particular, to a method and an apparatus for obtaining a ranging code, an electronic device, and a computer-readable storage medium.
Background
In satellite systems, a binary code sequence, used to determine the distance from the satellite to the receiver, is a pseudorandom noise code. For example, in the satellite navigation system, during the satellite acquisition and tracking process, the locally generated ranging code is used to perform the correlation process with the satellite signal modulated by the ranging code, so the local flexible generation of the ranging code by the receiver is the key for the acquisition and tracking of the navigation satellite.
In the related technology, one satellite corresponds to a ranging code storage space, all the satellite ranging codes are stored in the corresponding ranging code storage spaces after being calculated, and the receiver obtains the ranging codes of different satellites by using a table look-up method.
Disclosure of Invention
The application aims to provide a ranging code acquisition method, which can effectively reduce the space occupied by a satellite ranging code, reduce the occupation of a physical memory and save the circuit area. The specific scheme is as follows:
in a first aspect, the present application discloses a method for obtaining a ranging code, including:
when a request for obtaining a ranging code of a target satellite is received, obtaining a G1 code of the target satellite from a G1 code storage space;
inquiring the starting position of the G2 code of the target satellite from the G2 phase storage;
inquiring the G2 code of the target satellite according to the starting position of the G2 code of the target satellite and the code length of the target satellite in a G2 code storage space; wherein, the G1 codes of all satellites under the same satellite system are the same; all satellites under the same satellite system share the storage space of the G2 code, and the G2 code of each satellite is determined according to the corresponding initial position;
and carrying out exclusive OR operation on the G1 code and the G2 code to generate a ranging code of the target satellite.
Optionally, when a request for obtaining a ranging code of a target satellite is received, obtaining a G1 code of the target satellite from a G1 code storage space includes:
when a request for acquiring the ranging code of the target satellite is received, determining the request type of the request;
when the request type is a pilot component ranging code type, acquiring a G1 code of the target satellite from a G1 code storage space corresponding to the pilot component ranging code type;
and when the request type is a data component ranging code type, acquiring the G1 code of the target satellite from a G1 code storage space corresponding to the data component ranging code type.
Optionally, before receiving the request for obtaining the ranging code of the target satellite, the method further includes:
determining the reset time of the G1 code of each satellite according to the space signal interface control file;
generating a G1 code of each satellite according to a 13-bit initial value of the G1 code of each satellite, the reset time and the code length of a ranging code corresponding to each satellite;
and storing the G1 code into the storage space of the G1 code according to a first storage format.
Optionally, before receiving the request for obtaining the ranging code of the target satellite, the method further includes:
generating a G2 code of each satellite according to a 13-bit initial value of the G2 code of each satellite and the code length of the ranging code;
and storing the G2 code into the storage space of the G2 code according to a second storage format.
Optionally, the querying the starting position of the target satellite from the G2 phase storage includes:
determining a 13-bit initial value of the G2 code of the target satellite according to the space signal interface control file;
matching the 13-bit initial value of the G2 code of the target satellite with the G2 code in the storage space of the G2 code, and determining the starting bit of the G2 code of the target satellite;
and determining a starting phase and a starting address of the target satellite according to the starting bit and the second storage format, and taking the starting phase and the starting address as the starting position of the target satellite.
Optionally, the determining a start phase and a start address of the target satellite according to the start bit and the second storage format includes:
dividing the starting bit by the column width of the second storage format to obtain a starting address of the target satellite;
and performing complementation operation on the initial bit and the column width of the second storage format to obtain the initial phase of the target satellite.
In a second aspect, the present application discloses a ranging code acquisition device, including:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a G1 code of a target satellite from a G1 code storage space when receiving a request for acquiring a ranging code of the target satellite;
a first query module, configured to query a start position of a G2 code of the target satellite from a G2 phase store;
the second query module is used for querying the G2 code of the target satellite according to the starting position of the G2 code of the target satellite and the code length of the target satellite in the storage space of the G2 code; wherein, the G1 codes of all satellites under the same satellite system are the same; all satellites under the same satellite system share the storage space of the G2 code, and the G2 code of each satellite is determined according to the corresponding initial position;
and the generating module is used for carrying out exclusive OR operation on the G1 code and the G2 code to generate the ranging code of the target satellite.
Optionally, the obtaining module includes:
a determining unit, configured to determine, when a request for obtaining a ranging code of the target satellite is received, a request category of the request;
a first obtaining unit, configured to, when the request type is a pilot component ranging code type, obtain a G1 code of the target satellite from a G1 code storage space corresponding to the pilot component ranging code type;
and a second obtaining unit, configured to, when the request type is a data component ranging code type, obtain the G1 code of the target satellite from a G1 code storage space corresponding to the data component ranging code type.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and a processor, configured to implement the steps of the ranging code acquisition method when executing the computer program.
In a fourth aspect, the present application discloses a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the above-mentioned ranging code acquisition method.
The application provides a method for obtaining ranging codes, which comprises the following steps: when a request for obtaining a ranging code of a target satellite is received, obtaining a G1 code of the target satellite from a G1 code storage space; inquiring the starting position of the G2 code of the target satellite from the G2 phase storage; inquiring the G2 code of the target satellite according to the starting position of the G2 code of the target satellite and the code length of the target satellite in a G2 code storage space; wherein, the G1 codes of all satellites under the same satellite system are the same; all satellites under the same satellite system share the storage space of the G2 code, and the G2 code of each satellite is determined according to the corresponding initial position; and carrying out exclusive OR operation on the G1 code and the G2 code to generate a ranging code of the target satellite.
Therefore, in the application, the G1 code component of each satellite in the same satellite system is stored in the G1 code storage space, and the G2 code component is stored in the G2 code storage space, wherein the G1 codes of all satellites in the same satellite system are the same, and each satellite shares the G2 code storage space, and the G2 code corresponding to each satellite can be determined according to the initial position of the G2 code of each satellite; that is, the present application stores the G1 component of the satellite ranging code in the G1 code storage space, the G2 component is stored in the G2 code storage space, each satellite shares the G1 storage space, the G2 storage space and the G2 phase storage space, that is, all satellites can generate the ranging code of all satellites under the same satellite system only by using the same limited storage space (G1 code storage space, G2 code storage space and G2 phase storage space), the space occupied by the satellite ranging code can be effectively reduced, the defect that each satellite corresponds 1 ranging code storage space alone in the related art is avoided, when the number of satellites is increased, the occupied physical space is larger, the storage space occupied by the ranging code can be effectively reduced, the occupation of the physical memory is reduced, and the circuit area is saved. The application also provides a ranging code acquisition device, an electronic device and a computer readable storage medium, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for acquiring ranging codes according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a ranging code acquisition apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related technology, a BDS (Beidou satellite navigation system) and a GPS navigation are both code division multiple access, the ranging codes of each satellite are different, the ranging codes of all satellites are usually calculated and stored in a ranging code storage space, and a receiver obtains the ranging codes of different satellites by using a table look-up method. This approach consumes a large amount of memory space and a large amount of circuitry to implement. The storage space required by the ranging codes such as the BDS B2A (Beidou No. three) and the GPS L5 is as follows: 63x10230x2 bits, including 63 satellite pilot component ranging codes and data component ranging codes. For example, a BDS B2A navigation signal is broadcast on a round earth orbit satellite and a tilt geosynchronous orbit satellite in the third Beidou, and public navigation service is provided. According to the BDS B2A space signal interface control file, the BDS B2A ranging code can be acquired by the following method: the code rate of the BDS B2A signal ranging code is 10.23 Mbit/s, the code length is 10230 bit, and the BDS signal ranging code is obtained by two 13-stage linear feedback shift registers through shifting and Gold code extension generated by modulo two sum. The G1 and G2 sequences are generated by two 13-stage linear shift registers, respectively, whose generator polynomials are:
pilot component ranging code:
G1(X)=1+X^3+X^6+X^7+X^13
G2(X)=1+X+X^5+X^7+X^8+X^12+X^13
data component ranging code:
G1(X)=1+X+X^5+X^11+X^13
G2(X)=1+X^3+X^5+X^9+X^11+X^12+X^13
the ranging code generator polynomials for the two components of the BDS B2A signal are different, but use the same initial state, where the 13-bit initial value for register 1 is 1 and the 13-bit initial values for different satellite registers 2 are different. At the beginning of the ranging code period, register 1 and register 2 are reset synchronously, but at the end of 8190 th chip in the ranging code period, register 1 needs to be reset. And finally, carrying out bit XOR on the outputs of the register 1 and the register 2 to obtain the ranging code with the length of 10230.
After the GPS is modernized, the GPS navigation satellite broadcasts a GPS L5 navigation signal to provide open navigation service. The code rate of the GPS L5 signal ranging code is 10.23 Mbit/s, the code length is 10230 bit, and the GPS L5 signal ranging code is obtained by two 13-stage linear feedback shift registers through shifting and Gold code extension generated by modulo two sum. The GPL 5 ranging code generation method is similar to BDS B2A, please refer to the GPS L5 space signal interface control file.
Based on the foregoing technical problem, this embodiment provides a method for obtaining a ranging code, which can effectively reduce a storage space occupied by the ranging code, reduce an occupation of a physical memory, and save an occupation area of a mechanical circuit, specifically referring to fig. 1, where fig. 1 is a flowchart of the method for obtaining the ranging code provided in this embodiment of the present application, and specifically includes:
and S101, when a request for acquiring the ranging code of the target satellite is received, acquiring the G1 code of the target satellite from the G1 code storage space.
The embodiment does not limit the specific type of the target satellite, and may be a beidou satellite, or a GPS navigation satellite. Correspondingly, the satellite system corresponding to the target satellite is not limited in this embodiment, and may be a BDS beidou satellite navigation system or a satellite navigation system. The present embodiment does not limit the specific type of the ranging code, and may be a pilot component ranging code or a data component ranging code. It is understood that the G1 code storage space stores GI code components of respective satellites, and when a request for obtaining a ranging code of a target satellite is received, the G1 code of the target satellite is obtained from the G1 code storage space. In this embodiment, the number of satellite systems corresponding to the G1 code stored in the G1 code storage space is not limited, for example, only the G1 code of each satellite in the BDS beidou satellite navigation system may be stored, only the G1 code of each satellite in the satellite navigation system may be stored, and the G1 codes of each satellite in the BDS beidou satellite navigation system and the satellite navigation system may be stored simultaneously. It can be understood that when the G1 codes of the respective satellites of the BDS beidou satellite navigation system and the satellite navigation system are stored at the same time, there are two G1 code regions, the satellite under the BDS beidou satellite navigation system stores the G1 code of the BDS beidou satellite navigation system, and the satellite under the satellite navigation system stores the G1 code of the satellite navigation system.
It is to be understood that storing the G1 code in the G1 code storage space and the G2 code in the G2 code storage space may be performed before receiving a request to acquire the ranging code of the target satellite. The embodiment does not limit the specific process of storing the G1 code into the storage space of the G1 code. In a specific embodiment, before receiving the request for obtaining the ranging code of the target satellite, the method may further include:
determining the reset time of the G1 code of each satellite according to the space signal interface control file;
generating G1 codes of each satellite according to the 13-bit initial value of the G1 code of each satellite, the reset time and the code length of the ranging code corresponding to each satellite;
and storing the G1 code into the storage space of the G1 code according to a first storage format.
The spatial signal interface control file in this embodiment may refer to the prior art, and is not specifically described in this embodiment. The reset time of the G1 code of each satellite can be obtained by inquiring the space signal interface control file. In this embodiment, the G1 code of each satellite may be generated from the 13-bit initial value of the G1 code of each satellite, the reset time, and the code length of the ranging code corresponding to each satellite. Then, the generated G1 code is stored into the storage space of the G1 code according to the first storage format. The embodiment does not limit the specific manner of the first storage format, and may be 330x31, 265x31, and may be set according to actual situations. Taking the BDS B2A as an example, the initial value of 13 bits of the polynomial G1(X) is set to the binary value 1111111111111, and the polynomial G1(X) generates the G1 code with a cycle period of 8191, assuming that the code is: g11 G12 G13…G18191. According to the requirement of the BDS B2A space signal interface control file, the 8190 bit is reset, so that the G1 code of the last 10230 bit is: g11 G12 G13…G18190 G11G12G13…G12040It is stored in storage space of G1 code according to a certain format, for example, it is stored in storage space of G1 according to 330x31 requirement.
The embodiment also does not limit the specific process of storing the G2 code into the storage space of the G2 code. In a specific embodiment, before receiving the request for obtaining the ranging code of the target satellite, the method may further include:
generating a G2 code of each satellite according to a 13-bit initial value of the G2 code of each satellite and the code length of the ranging code;
and storing the G2 code into the storage space of the G2 code according to a second storage format.
In this embodiment, the G2 code of each satellite may be generated from the 13-bit initial value of the G2 code of each satellite, the reset time, and the code length of the ranging code corresponding to each satellite. Then, the generated G2 code is stored into the storage space of the G2 code according to a second storage format. The embodiment does not limit the specific manner of the second storage format, and may be 330x31, 265x31, and may be set according to actual situations. Same asTaking BDS B2A as an example, the initial 13-bit value of polynomial G2(X) is set to binary value 1111111111111, and polynomial G2(X) generates G2 code with cycle period 8191, assuming that the code is: g21G22G23…G28191It is stored in G2 code storage space according to a certain format, for example, 8191 bit code is stored in G2 storage space according to 265x31 requirement. Since the 265x31 space is 8215 bits, only 7 bits are valid when reading the 264 th row G2 code (row address counts from 0).
It should be noted that the ranging codes of each satellite in the satellite system may be divided into pilot component ranging codes and data component ranging codes, and the G1 codes and G2 codes corresponding to the two ranging codes are different, so it is necessary to determine whether the acquisition request belongs to a request of the pilot component ranging codes or a request of the data component ranging codes. The present embodiment does not limit a specific process of acquiring the G1 code of the target satellite from the G1 code storage space when a request for acquiring the ranging code of the target satellite is received. In a specific embodiment, when a request for obtaining the ranging code of the target satellite is received, obtaining the G1 code of the target satellite from the G1 code storage space may include:
when a request for acquiring a ranging code of a target satellite is received, determining the request type of the request;
when the request type is a pilot component ranging code type, acquiring a G1 code of the target satellite from a G1 code storage space corresponding to the pilot component ranging code type;
and when the request type is the data component ranging code type, acquiring the G1 code of the target satellite from the G1 code storage space corresponding to the data component ranging code type.
That is, in the embodiment, after receiving the request for obtaining the ranging code of the target satellite, it is first determined whether the request category of the request belongs to the pilot component ranging code category or the data component ranging code category, and then according to the specific category, the G1 code of the target satellite is obtained from the corresponding G1 code storage space.
And S102, inquiring the starting position of the G2 code of the target satellite from the G2 phase storage.
It can be understood that the initial values of the G2 codes of different satellites are different, and the initial values are different, which is equivalent to the initial phase of the G2 code, so the present embodiment stores the G2 code phase information of each satellite in the G2 phase storage. For example, according to the space signal interface control file of the BDS B2A, the initial values of the polynomial expressions G2(X) of each satellite in the beidou three-satellite system are different, and the attributes of the polynomial expressions G2(X) can indicate that the initial values are different and the initial phases of the corresponding G2 codes are different, so that the phase information of the G2 code corresponding to each satellite can be stored in the corresponding G2 phase storage. In this embodiment, the starting position of the G2 code of the target satellite can be searched from the G2 phase storage, and after the starting position is searched, the G2 code of the target satellite can be searched and determined in the G2 code storage space, and reference may be made to S103 for the step of specifically determining the G2 code of the target satellite. The present embodiment does not specifically limit the start position, and may include a start address and a start phase, or may include other information.
The present embodiment does not limit a specific process of searching the G2 code start position of the target satellite from the G2 phase storage. In a specific embodiment, the step of searching the G2 phase storage for the starting position of the target satellite may include:
determining a 13-bit initial value of a G2 code of a target satellite according to the control requirement of a space signal interface;
matching the 13-bit initial value of the G2 code of the target satellite with the G2 code in the storage space of the G2 code to determine the initial bit of the G2 code of the target satellite;
and determining the starting phase and the starting address of the target satellite according to the starting bit and the second storage format, and taking the starting phase and the starting address as the starting position of the target satellite.
In the embodiment, firstly, according to the space signal interface control requirement, a 13-bit initial value of the G2 code of the target satellite is determined, then, the 13-bit initial value of the G2 code of the target satellite is matched with the G2 code in the storage space of the G2 code, the position of the successfully matched 13 bits in the G2 code is determined, and the position of the 1 st bit in the 13 bits is determined as the starting bit of the G2 code of the target satellite. For example, using BDS B2A satellite 1 pilot component ranging code as an example, the initial phase of G2 code is determinedBit calculation is explained. From the BDS B2A space signal interface control file table 5-3, it can be seen that the initial value of the BDS B2A satellite 1 pilot component polynomial expression G2(X) is binary value 1010010000001, and G2 can be found in the G2 code generated in the above embodiment2988G22989…G23000Matched to the initial value 1010010000001, so the final G2 code for the BDS B2A satellite 1 pilot component should be G22988G22989…G28191G21G22…G25026That is, the BDS B2A satellite 1 pilot component G2 code is the 2988 th bit of the generated G2 code and starts to be output to 5026 bits, which is 10230 bits in total. Since the G2 code generated in the above-described embodiment is stored with 31 bits per row, 2988/31 is 96.387, the BDS B2A satellite 1 pilot component G2 code start address is the G2 code storage row address 96 (row address count starts from 0), and further, since G2 stores 31 bits wide, initial phase information of start addresses corresponding to different satellites is to be recorded, 2988% 31 is 12, that is, valid from the 11 th bit of the start row (phase count starts from 0), and thus 96 and 11 are recorded to the G2 phase storage space. The start addresses and start phases of the 63 satellites are stored in a 14x63 bit phase memory space, i.e., a G2 phase memory, where each row includes a 9 bit start address and a 5 bit start phase for one satellite.
The specific process of determining the start phase and the start address of the target satellite is not limited in this embodiment. Determining a start phase and a start address of the target satellite according to the start bit and the second storage format may include:
dividing the initial bit by the column width of the second storage format to obtain the initial address of the target satellite;
and performing complementation operation on the initial bit and the column width of the second storage format to obtain the initial phase of the target satellite.
In the above embodiment, after the start bit of the G2 code is determined, the start bit is divided by the column width of the second storage format to obtain the start address of the target satellite; and performing complementation operation on the initial bit and the column width of the second storage format to obtain the initial phase of the target satellite.
S103, inquiring the G2 code of the target satellite according to the initial position of the G2 code of the target satellite and the code length of the target satellite in the G2 code storage space; wherein, the G1 codes of all satellites under the same satellite system are the same; and the storage space of the G2 code is shared by all satellites under the same satellite system, and the G2 code of each satellite is determined according to the corresponding initial position.
It is understood that the G2 code storage space stores the G2 code components of the respective satellites. It can also be understood that the G1 codes of the satellites in the same satellite system are the same, so that the satellites in the same satellite system share the storage space of the G1 code; because the G2 codes of each satellite in the same satellite system only have different initial positions, each satellite in the same satellite system can share the storage space of the G2 code, and the G2 codes of each satellite can be determined by inquiring the G2 codes from the initial positions according to the respective corresponding initial positions. In the process of acquiring the G2 code of the target satellite, the G2 code of the target satellite may be searched and determined in the G2 code storage space according to the starting position of the G2 code of the target satellite and the code length of the target satellite.
And S104, carrying out exclusive OR operation on the G1 code and the G2 code to generate a ranging code of the target satellite.
And after the G1 code and the G2 code of the target satellite are acquired, carrying out XOR operation on the G1 code and the G2 code to obtain the ranging code of the target satellite.
Based on the above technical solution, in order to obtain a ranging code of a certain satellite in the embodiment of the present application, a starting address and a starting phase of a G2 code of a target satellite are first searched from a G2 phase storage. For example, the BDS B2A satellite 1 pilot component G2 code has a start address of 96 and a start phase of 11, starting from the 11 th bit in the 96 th row of the G2 code memory space, ending at the 6 th bit in the 264 th row, and starting from the 0 th bit in the 0 th row to the 3 rd bit in the 162 th row (the start address and the start phase are both counted from 0), which outputs 10230 bits of G2 code. The G1 code is obtained by starting at the 0 th bit in the 0 th row and ending at the 30 th bit in the 329 th row, and the G1 code with 10230 bits is output in total. And finally, carrying out exclusive OR operation on the output G1 code and the output G2 code according to bits to obtain the final BDS B2A satellite 1 pilot frequency component ranging code. Under a navigation satellite system, for example, the GPS L5 generates ranging codes in the same way as the BDS B2A, but only 3 storage spaces with different storage contents.
Based on the above technical solution, in this embodiment, the G1 component of the satellite ranging code is stored in the G1 code storage space, the G2 component is stored in the G2 code storage space, and each satellite shares the G1 storage space, the G2 storage space, and the G2 phase storage, that is, all satellites can generate the ranging codes of all satellites in the same satellite system only by using the same limited storage space (the G1 code storage space, the G2 code storage space, and the G2 phase storage), so that the space occupied by the satellite ranging code can be effectively reduced, the occupation of a physical memory is reduced, and the circuit area is saved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a ranging code acquisition device according to an embodiment of the present disclosure, where the ranging code acquisition device described below and the ranging code acquisition method described above are referred to in a corresponding manner, and the ranging code acquisition device includes:
in some specific embodiments, the method specifically includes:
an obtaining module 201, configured to, when receiving a request for obtaining a ranging code of a target satellite, obtain a G1 code of the target satellite from a G1 code storage space;
a first query module 202, configured to query the G2 code starting position of the target satellite from the G2 phase storage;
the second query module 203 is used for querying the G2 code of the target satellite according to the starting position of the G2 code of the target satellite and the code length of the target satellite in the storage space of the G2 code; wherein, the G1 codes of all satellites under the same satellite system are the same; the method comprises the steps that all satellites under the same satellite system share a G2 code storage space, and the G2 codes of all the satellites are determined according to the corresponding initial positions;
and the generating module 204 is configured to perform an exclusive-or operation on the G1 code and the G2 code to generate a ranging code of the target satellite.
In some specific embodiments, the obtaining module 201 includes:
the determining unit is used for determining the request type of the request when receiving the request for acquiring the ranging code of the target satellite;
a first obtaining unit, configured to obtain, when the request type is a pilot component ranging code type, a G1 code of the target satellite from a G1 code storage space corresponding to the pilot component ranging code type;
and a second obtaining unit, configured to obtain the G1 code of the target satellite from the G1 code storage space corresponding to the data component ranging code class when the request class is the data component ranging code class.
In some specific embodiments, the method further comprises:
the determining module is used for determining the reset time of the G1 code of each satellite according to the space signal interface control file;
a G1 code generating module, configured to generate a G1 code for each satellite according to the 13-bit initial value of the G1 code for each satellite, the reset time, and the code length of the ranging code corresponding to each satellite;
and the G1 code storage space module is used for storing the G1 codes into the G1 code storage space according to the first storage format.
In some specific embodiments, the method further comprises:
a G2 code generating module, which is used for generating G2 codes of each satellite according to the 13-bit initial value of the G2 code of each satellite and the code length of the ranging code;
and the G2 code storage space module is used for storing the G2 codes into the G2 code storage space according to a second storage format.
In some specific embodiments, the first query module 202 includes:
an initial value determining unit, configured to determine a 13-bit initial value of the G2 code of the target satellite according to the space signal interface control file;
a start bit determining unit for matching a 13-bit initial value of the G2 code of the target satellite with the G2 code in the G2 code storage space, and determining a start bit of the G2 code of the target satellite;
and the starting position determining unit is used for determining a starting phase and a starting address of the target satellite according to the starting bit and the second storage format, and taking the starting phase and the starting address as the starting position of the target satellite.
In some specific embodiments, the starting position determining unit includes:
the starting address subunit is used for dividing the starting bit by the column width of the second storage format to obtain a starting address of the target satellite;
and the initial phase subunit is used for performing complementation operation on the initial bit and the column width of the second storage format to obtain the initial phase of the target satellite.
Since the embodiments of the ranging code acquisition device part and the ranging code acquisition method part correspond to each other, please refer to the description of the embodiments of the ranging code acquisition method part for the embodiments of the ranging code acquisition device part, which is not repeated here.
In the following, an electronic device provided in the embodiments of the present application is introduced, and the electronic device described below and the ranging code obtaining method described above may be referred to correspondingly.
The application discloses electronic equipment includes:
a memory for storing a computer program;
and a processor, configured to implement the steps of the ranging code acquisition method when executing the computer program.
Since the embodiment of the electronic device portion corresponds to the embodiment of the ranging code acquisition method portion, please refer to the description of the embodiment of the ranging code acquisition method portion for the embodiment of the electronic device portion, which is not repeated here.
In the following, a computer-readable storage medium provided by an embodiment of the present application is introduced, and the computer-readable storage medium described below and the ranging code obtaining method described above may be referred to correspondingly.
The application also discloses a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above-mentioned ranging code acquisition method.
Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the ranging code acquisition method portion, please refer to the description of the embodiment of the ranging code acquisition method portion for the embodiment of the computer-readable storage medium portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above provides a method, an apparatus, an electronic device and a computer-readable storage medium for obtaining a ranging code. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method for obtaining ranging codes, comprising:
when a request for obtaining a ranging code of a target satellite is received, obtaining a G1 code of the target satellite from a G1 code storage space;
inquiring the starting position of the G2 code of the target satellite from the G2 phase storage;
inquiring the G2 code of the target satellite according to the starting position of the G2 code of the target satellite and the code length of the target satellite in a G2 code storage space; wherein, the G1 codes of all satellites under the same satellite system are the same; all satellites under the same satellite system share the storage space of the G2 code, and the G2 code of each satellite is determined according to the corresponding initial position;
and carrying out exclusive OR operation on the G1 code and the G2 code to generate a ranging code of the target satellite.
2. The method as claimed in claim 1, wherein when a request for obtaining a ranging code of a target satellite is received, obtaining a G1 code of the target satellite from a G1 code storage space comprises:
when a request for acquiring the ranging code of the target satellite is received, determining the request type of the request;
when the request type is a pilot component ranging code type, acquiring a G1 code of the target satellite from a G1 code storage space corresponding to the pilot component ranging code type;
and when the request type is a data component ranging code type, acquiring the G1 code of the target satellite from a G1 code storage space corresponding to the data component ranging code type.
3. The method of claim 1, further comprising, before receiving a request to acquire the ranging code of the target satellite:
determining the reset time of the G1 code of each satellite according to the space signal interface control file;
generating a G1 code of each satellite according to a 13-bit initial value of the G1 code of each satellite, the reset time and the code length of a ranging code corresponding to each satellite;
and storing the G1 code into the storage space of the G1 code according to a first storage format.
4. The method of claim 3, further comprising, before receiving the request to acquire the ranging code of the target satellite:
generating a G2 code of each satellite according to a 13-bit initial value of the G2 code of each satellite and the code length of the ranging code;
and storing the G2 code into the storage space of the G2 code according to a second storage format.
5. The method of claim 4, wherein querying the starting position of the target satellite from the G2 phase store comprises:
determining a 13-bit initial value of the G2 code of the target satellite according to the space signal interface control file;
matching the 13-bit initial value of the G2 code of the target satellite with the G2 code in the storage space of the G2 code, and determining the starting bit of the G2 code of the target satellite;
and determining a starting phase and a starting address of the target satellite according to the starting bit and the second storage format, and taking the starting phase and the starting address as the starting position of the target satellite.
6. The method as claimed in claim 5, wherein the determining the start phase and the start address of the target satellite according to the start bit and the second storage format comprises:
dividing the starting bit by the column width of the second storage format to obtain a starting address of the target satellite;
and performing complementation operation on the initial bit and the column width of the second storage format to obtain the initial phase of the target satellite.
7. A ranging code acquisition apparatus, comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a G1 code of a target satellite from a G1 code storage space when receiving a request for acquiring a ranging code of the target satellite;
a first query module, configured to query a start position of a G2 code of the target satellite from a G2 phase store;
the second query module is used for querying the G2 code of the target satellite according to the starting position of the G2 code of the target satellite and the code length of the target satellite in the storage space of the G2 code; wherein, the G1 codes of all satellites under the same satellite system are the same; all satellites under the same satellite system share the storage space of the G2 code, and the G2 code of each satellite is determined according to the corresponding initial position;
and the generating module is used for carrying out exclusive OR operation on the G1 code and the G2 code to generate the ranging code of the target satellite.
8. The device of claim 7, wherein the acquiring module comprises:
a determining unit, configured to determine, when a request for obtaining a ranging code of the target satellite is received, a request category of the request;
a first obtaining unit, configured to, when the request type is a pilot component ranging code type, obtain a G1 code of the target satellite from a G1 code storage space corresponding to the pilot component ranging code type;
and a second obtaining unit, configured to, when the request type is a data component ranging code type, obtain the G1 code of the target satellite from a G1 code storage space corresponding to the data component ranging code type.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the ranging code acquisition method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, implements the steps of the ranging code acquisition method according to any one of claims 1 to 6.
CN202110698866.4A 2021-06-23 2021-06-23 Ranging code acquisition method and device, electronic equipment and storage medium Active CN113391331B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110698866.4A CN113391331B (en) 2021-06-23 2021-06-23 Ranging code acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110698866.4A CN113391331B (en) 2021-06-23 2021-06-23 Ranging code acquisition method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113391331A true CN113391331A (en) 2021-09-14
CN113391331B CN113391331B (en) 2022-12-09

Family

ID=77623544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110698866.4A Active CN113391331B (en) 2021-06-23 2021-06-23 Ranging code acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113391331B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001281324A (en) * 2000-03-31 2001-10-10 Japan Radio Co Ltd Code generator
US20030118086A1 (en) * 2001-12-21 2003-06-26 Nokia Corporation Method for performing reacquisition in a positioning receiver, and an electronic device
CN101432635A (en) * 2006-05-03 2009-05-13 纳夫科姆技术公司 Adaptive code generator for satellite navigation receivers
CN103487817A (en) * 2013-09-18 2014-01-01 中国科学院嘉兴微电子与系统工程中心 Multimode multi-frequency GNSS pseudo code generation device
CN105467409A (en) * 2014-07-28 2016-04-06 航天恒星科技有限公司 Universal navigational satellite capturing method and universal navigational satellite capturing system
CN206832997U (en) * 2017-04-01 2018-01-02 西安拓蓝电子科技有限公司 One kind is used for the parallel generation module of GPS system L1 band receiver spread spectrum code sequences
CN109581433A (en) * 2018-11-28 2019-04-05 西安开阳微电子有限公司 A kind of L5 signal acquisition methods, device and computer storage medium
CN110727004A (en) * 2019-09-29 2020-01-24 武汉梦芯科技有限公司 Weil code generation method and device and storage medium
US10564290B1 (en) * 2018-08-10 2020-02-18 Rockwell Collins, Inc. Systems and methods for GNSS processing to determine secondary code phase
US20200366915A1 (en) * 2019-05-13 2020-11-19 Shanghai Zhaoxin Semiconductor Co., Ltd. Image processing method and image processing device
CN112698364A (en) * 2020-12-10 2021-04-23 成都国星通信有限公司 Compatible modern GNSS signal ranging code generation method
CN112731475A (en) * 2020-12-25 2021-04-30 中国科学院国家空间科学中心 GNSS occultation double-branch signal open-loop tracking method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001281324A (en) * 2000-03-31 2001-10-10 Japan Radio Co Ltd Code generator
US20030118086A1 (en) * 2001-12-21 2003-06-26 Nokia Corporation Method for performing reacquisition in a positioning receiver, and an electronic device
CN101432635A (en) * 2006-05-03 2009-05-13 纳夫科姆技术公司 Adaptive code generator for satellite navigation receivers
CN103487817A (en) * 2013-09-18 2014-01-01 中国科学院嘉兴微电子与系统工程中心 Multimode multi-frequency GNSS pseudo code generation device
CN105467409A (en) * 2014-07-28 2016-04-06 航天恒星科技有限公司 Universal navigational satellite capturing method and universal navigational satellite capturing system
CN206832997U (en) * 2017-04-01 2018-01-02 西安拓蓝电子科技有限公司 One kind is used for the parallel generation module of GPS system L1 band receiver spread spectrum code sequences
US10564290B1 (en) * 2018-08-10 2020-02-18 Rockwell Collins, Inc. Systems and methods for GNSS processing to determine secondary code phase
CN109581433A (en) * 2018-11-28 2019-04-05 西安开阳微电子有限公司 A kind of L5 signal acquisition methods, device and computer storage medium
US20200366915A1 (en) * 2019-05-13 2020-11-19 Shanghai Zhaoxin Semiconductor Co., Ltd. Image processing method and image processing device
CN110727004A (en) * 2019-09-29 2020-01-24 武汉梦芯科技有限公司 Weil code generation method and device and storage medium
CN112698364A (en) * 2020-12-10 2021-04-23 成都国星通信有限公司 Compatible modern GNSS signal ranging code generation method
CN112731475A (en) * 2020-12-25 2021-04-30 中国科学院国家空间科学中心 GNSS occultation double-branch signal open-loop tracking method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JIANFENG LI ET AL.: "Large depth-of-view portable three-dimensional laser scanner and its segmental calibration for robot vision", 《OPTICS AND LASERS IN ENGINEERING》 *
JIANFENG LI ET AL.: "Large depth-of-view portable three-dimensional laser scanner and its segmental calibration for robot vision", 《OPTICS AND LASERS IN ENGINEERING》, 31 December 2007 (2007-12-31), pages 1077 - 1087 *
臧志斌等: "基于FPGA的北斗三号卫星B2a码发生器实现", 《信息技术与网络安全》, vol. 39, no. 04, 30 April 2020 (2020-04-30), pages 58 - 62 *

Also Published As

Publication number Publication date
CN113391331B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
JP5791806B2 (en) Navigation system using spreading code based on pseudo-random noise sequence
RU2416101C2 (en) Spreading codes for satellite navigation system
US7315569B2 (en) Method and system for locating a GPS correlated peak signal
CN109557568B (en) Ranging code generation method and device
CN110727004A (en) Weil code generation method and device and storage medium
CN104808221A (en) Weil code generation device and satellite navigation signal receiver
CN111308519B (en) Navigation satellite capturing method, device, equipment and medium
JP6061773B2 (en) Signal processing apparatus, signal processing method, and signal processing program
US7424049B2 (en) Acquisition method and apparatus for carrying out the method
CN113391331B (en) Ranging code acquisition method and device, electronic equipment and storage medium
EP1458105B1 (en) Method and device for decoding of Reed-Solomon codes
EP2827516A1 (en) Scrambling code generation method, apparatus and scrambling code processing apparatus
JP3250529B2 (en) Multi-dimensional pseudo noise generation circuit for soft decision demodulation
CN113009527A (en) Universal satellite navigation pseudo code generation method
JP4771637B2 (en) Method and apparatus for digital correlation
US8787514B2 (en) Apparatus and method for generating pseudo noise code
CN112068164B (en) Navigation satellite capturing method, device, satellite navigation receiver and storage medium
KR101056365B1 (en) Bit down scaling method and device, GPS synchronization acquisition method and GPS receiver
US7590828B2 (en) Processing a data word in a plurality of processing cycles
CN111224741A (en) BCH code decoding method and decoder for satellite navigation and satellite navigation receiver
JP4806341B2 (en) Code generating apparatus and spread spectrum signal receiving system
CN111669185B (en) BCH decoding method and device, storage medium and electronic equipment
KR20010110351A (en) Synchronicity detection device
CN115951376A (en) Positioning method and device fusing indoor and outdoor satellites, terminal equipment and storage medium
CN115407373A (en) Weil code generation method, computer storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant