A multifunctional Beidou baseband signal generator based on STM32 and FPGA and its working method

Through the multi-function Beidou baseband signal generator combined with STM32 and FPGA, the problem of insufficient signal generation capability in the existing technology is solved, and a high-precision and rapid development baseband signal generator is realized, which can simulate multiple satellite signal scenarios and improves the Convenience and efficiency of receiver performance testing.

CN116208235BActive Publication Date: 2024-11-08SHANDONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310212963.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2024-11-08
Estimated Expiration
2043-03-02

AI Technical Summary

Technical Problem

The existing satellite baseband signal generators have insufficient signal generation capabilities in special scenarios such as high dynamics and multipath interference in simulation receivers, resulting in a long R&D cycle and limited computing capabilities, which cannot meet the market's demand for high precision and rapid development.

Method used

Using a multi-function Beidou baseband signal generator combined with STM32 and FPGA, the embedded software development advantages of STM32 and the high-speed signal parallel processing capability of FPGA can realize the baseband signal generation with selectable data bit widths of Beidou B1I and B2I frequency points, and Simulate signals in scenarios such as high dynamics, atmospheric delays, and multipath interference.

Benefits of technology

It realizes a baseband signal generator with high software computing accuracy, short development cycle, fast hardware operation speed and strong signal processing capabilities. It can simulate a variety of satellite signal scenarios, provide a comprehensive testing environment for the receiver, and improve performance testing and optimization. Convenience and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208235B_ABST
    Figure CN116208235B_ABST
Patent Text Reader

Abstract

The present invention relates to a multifunctional Beidou baseband signal generator based on STM32 and FPGA and a working method thereof, belonging to the field of satellite communication, the generator is constructed based on STM32 and FPGA, STM32 is responsible for satellite signal parameter calculation, and FPGA completes signal generation. The STM32 signal parameter calculation unit is used for time / coordinate system conversion, carrier motion mode selection, navigation message calculation, satellite visibility calculation, pseudo-range real-time calculation, satellite trajectory simulation, satellite transmission error calculation and satellite initial state parameter calculation. FPGA includes a carrier generation module, a ranging code generation module, a navigation message generation module, a BCH error correction coding module, a signal modulation module, a channel combiner module, a channel control module and a serial communication module. The present invention can simulate the baseband signal of the receiver in a high dynamic scene, atmospheric delay, multipath interference and special scenes of satellite loss of lock.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a multifunctional Beidou baseband signal generator based on STM32 and FPGA and a working method thereof, and belongs to the technical field of satellite communication. Background Art

[0002] BeiDou system is a satellite navigation and positioning system independently developed by my country, which has been widely used in vehicle navigation, aviation, military and other fields. With the continuous development of BeiDou system, the domestic satellite navigation industry chain has flourished. In recent years, the scale of satellite navigation industry has maintained a growth rate of 30%-40%. The continuous expansion of the industry scale has given rise to the urgent market demand for new products and services, which requires manufacturers in the industry chain to speed up the progress of research and development and testing and shorten the production cycle. Satellite baseband signal generator can be used to generate baseband signals for position solution in harsh environments such as high dynamics and multipath interference, which is convenient for testing the performance of baseband signal processing in the receiver. It is an important link in the satellite navigation industry chain. Therefore, designing a baseband signal generator that can simulate the baseband signal received by the receiver in various scenarios has high scientific research and commercial value.

[0003] However, since the BeiDou satellite navigation system has just started to provide continuous positioning and navigation services to China and surrounding areas, domestic research has mainly focused on BeiDou receiver-related technologies. However, the domestic research on satellite navigation signal generators started late, resulting in slow development of the technology for developing satellite navigation signal generators, especially the lack of satellite signal generators that can simulate special scenarios where the receiver is in high dynamics, multipath interference, and other special scenarios where it is difficult to collect satellite signals, which has affected scientific research and technical realization in related areas.

[0004] At present, satellite baseband signal generators are mainly divided into two categories: the first category is based on software architecture, and the second category is based on hardware architecture. Satellite baseband signal generators based on software architecture mainly generate baseband signals through computer software. This method has the advantages of easy feasibility and low cost, but since the signal cannot be sent in real time, it can only be simulated by playback, so it has certain limitations. Generators based on hardware structure simulate the generation of baseband signals through hardware devices such as FPGA. The signals directly generated by this method have good real-time performance and strong consistency with the satellite baseband signals actually processed by the receiver. However, the pure hardware structure generator has a long R&D cycle and limited computing power, and cannot perform large-scale floating-point operations. Therefore, the market is in urgent need of a satellite baseband signal generator that can take into account high software computing accuracy and short development cycle, as well as fast hardware operation speed and strong signal processing capabilities. Summary of the invention

[0005] In order to solve the deficiencies of the prior art, the present invention provides a multifunctional Beidou baseband signal generator based on STM32 and FPGA and a working method thereof. The present invention combines the advantages of embedded software development and the high-speed signal parallel processing capability of FPGA, and can take into account both high software calculation accuracy and short development cycle, as well as fast hardware operation speed and strong signal processing capability, and proposes a multifunctional baseband signal generator. The signal generator can generate baseband signals with selectable data bit widths for Beidou B1I frequency points and B2I frequency points, and can simulate the generation of baseband signals for receivers in various special scenarios, such as high dynamic scenarios, atmospheric delays, multipath interference, and satellite lockout scenarios.

[0006] Terminology explanation:

[0007] STM32: STM32 is a series of 32-bit ARMCortex-M microcontroller products launched by STMicroelectronics, which has the characteristics of high performance, low power consumption and strong scalability.

[0008] FPGA: FPGA stands for "Field-Programmable Gate Array", which is a programmable logic chip.

[0009] Baseband signal: refers to the original signal that has not been modulated, usually a low-frequency signal, and its frequency range is usually between a few hundred hertz and a few megahertz. The characteristic of baseband signal is that it can directly reflect the information of the signal source itself.

[0010] ECEF coordinate system: The ECEF coordinate system is an earth-centered, earth-fixed coordinate system with the earth's center of mass as the origin and the earth's rotation axis as the Z axis. It is also called the earth-centered inertial coordinate system.

[0011] FIFO: FIFO stands for "First-In, First-Out", which is a commonly used data buffer.

[0012] Pseudorange: usually refers to the time difference between the satellite signal transmission time and the signal transmission time measured by the receiver. The distance can be obtained by multiplying it by the speed of light.

[0013] Doppler shift: When the distance between the transmitter and the receiver changes, the frequency of the signal received by the receiver changes. When the transmitter and the receiver are close, the frequency of the signal received by the receiver increases, and when the two are far away, the frequency of the signal received by the receiver decreases.

[0014] BCH(11,15,1): A BCH code with 11 data bits, 4 check bits, and a total of 15 code bits. BCH code is a coding scheme that can detect and correct errors that occur during data transmission.

[0015] Multipath interference: Multipath interference is a common form of signal interference in wireless communications. Since the signal may go through multiple paths during the transmission process, and the lengths, directions, reflections and other conditions of these paths are different, the time, phase and other parameters of the signal transmitted through these paths when it reaches the receiving end will also change.

[0016] DDS: A method of generating frequency-adjustable signals using digital technology. In simple terms, DDS can use a digital signal processor to generate high-precision sine waves, square waves, triangle waves and other waveforms without using analog circuits.

[0017] The technical solution of the present invention is:

[0018] A multifunctional Beidou baseband signal generator based on STM32 and FPGA, comprising an STM32 and an FPGA connected to each other, wherein the STM32 comprises a signal parameter calculation unit, and the signal parameter calculation unit is used for time / coordinate system conversion, receiver motion mode selection, navigation message calculation, satellite visibility calculation, pseudo-range real-time calculation, satellite trajectory simulation, satellite transmission error calculation and satellite initial state parameter calculation;

[0019] FPGA is used to realize the signal generation function, including carrier generation module, ranging code generation module, navigation message generation module, BCH error correction coding module, signal modulation module, channel combiner module, channel control module and serial communication module.

[0020] A working method of the above-mentioned multifunctional Beidou baseband signal generator based on STM32 and FPGA, the STM32 first sets the local time, reads and selects a valid ephemeris file matching the local time, then selects the motion state of the receiver, determines the satellite visible at the current moment, and generates a corresponding navigation message, calculates the distance between the satellite and the receiver in real time, and calculates the real-time signal parameters of the satellite visible at the current moment; finally, the satellite number and the real-time signal parameters are sent to the FPGA through the serial port;

[0021] After receiving the satellite number and signal parameters sent by STM32, FPGA configures channels for visible satellites, generates carrier signals and ranging code signals for each visible satellite according to the signal parameters, generates navigation messages, and then completes digital baseband signal modulation of each analog channel. The signal bit width can be selected as 8 bits or 4 bits; finally, a data update signal is sent to STM32 through the serial communication module to start receiving the signal parameters at the next moment and generate the signal at the next moment.

[0022] Preferably, the signal generator specifically implements the steps as follows:

[0023] Step 1, STM32 first sets the local time, and then reads the ephemeris file stored in the SD card that matches the local time;

[0024] Step 2: The user selects the motion state of the receiver. The motion modes of the receiver are divided into two modes: dynamic and static. In the dynamic mode, the receiver has a certain speed and acceleration, which can be used to simulate the baseband signal of the receiver's high dynamic scene; in the static mode, the receiver is fixed in position, so it can generate a baseband signal suitable for absolute single-point positioning. The position of the receiver is expressed in the form of longitude, latitude and altitude;

[0025] Step 3, obtain the orbital parameters of each satellite through the ephemeris file in step 1, and calculate the satellite position at the current moment, and then calculate the relative position of the two through the receiver position obtained in step 2, so as to obtain the elevation angle and azimuth angle of the satellite, and determine whether the satellite elevation angle is greater than the threshold value. If it is greater than the threshold value, it is judged to be visible, otherwise it is invisible;

[0026] Step 4, assign channels to the visible satellites in step 3 and perform navigation message calculation;

[0027] Step 5: The geographical location of each visible satellite can be calculated by using the orbital parameters in the satellite navigation message obtained in step 3; the position of the receiver is obtained by step 2; and the pseudorange at the current moment is calculated by using the positions of the two.

[0028] Step 6: According to the user's test requirements, the atmospheric delay in the simulated signal transmission process and the multipath interference suffered by the receiver are considered in the pseudorange calculated in step 5;

[0029] The atmosphere will slow down the propagation speed of satellite signals and increase the transmission time of satellite signals. To calculate the impact of atmospheric delay on pseudorange, we can first estimate the delay caused by the satellite signal passing through the atmosphere through the error model, and then multiply the delay by the speed of light and add it to the pseudorange calculated in step 5 to obtain the real-time pseudorange with the atmospheric delay added. Multipath interference can estimate the pseudorange change caused by the multipath effect through the multipath attenuation coefficient, and add the change to the pseudorange obtained in step 5 to obtain the pseudorange value under multipath interference.

[0030] Step 7, using the pseudorange calculated in step 6, calculate the ranging code phase, the navigation message data start bit, and the Doppler frequency shift value;

[0031] Step 8, calculate the carrier frequency control word according to the carrier Doppler frequency shift value obtained in step 7 f carris the Doppler frequency shift value, f IF The preset baseband signal center frequency, f s is the sampling frequency set by the system, and N is the phase accumulator step size;

[0032] The satellite number, navigation message, ranging code phase, carrier frequency control word, and navigation message start bit of each visible satellite are sent to the FPGA through the serial port in channel order so that the FPGA can generate the designed baseband signal;

[0033] Step 9, after the FPGA serial port receiving port receives the information parameters sent by STM32, it first stores the parameters of all visible satellites into a FIFO of a certain depth;

[0034] Step 10, by reading the data written into FIFO in step 9, first obtain the satellite number of each visible satellite, and then obtain the ranging code phase, carrier frequency control word, navigation message start bit, and navigation message of each satellite;

[0035] Step 11, through the satellite number and the ranging code phase received in step 10, the ranging code generation module generates a ranging code sequence of corresponding code phase and code rate under the drive of the code phase and code frequency control word, that is, generates the ranging code of the corresponding Beidou satellite;

[0036] Step 12, after receiving the carrier frequency control word in step 10, the carrier generation module generates a digital sine signal and a digital cosine signal of the required frequency and phase according to the preset carrier initial phase and the received carrier frequency control word;

[0037] Step 13: The navigation message obtained in step 10 will be input into the BCH error correction coding module. The BCH error correction coding module uses the BCH (11, 15, 1) coding method and the official error correction technology for error correction processing;

[0038] Step 14, the process of the navigation message generation module generating the navigation message at the current moment by using the navigation message obtained in step 13 and the navigation message start bit obtained in step 10 is as follows: the navigation message start bit obtained in step 10 is used to select the bit of the word of the navigation message obtained in step 13 to be sent at the current moment, and then the navigation message to be sent at the current moment is determined by the value of the bit corresponding to the selected navigation message;

[0039] Step 15: The signal modulation module multiplies the navigation message obtained in step 14 by the ranging code sequence obtained in step 11, performs spread spectrum modulation, and multiplies the spread spectrum modulated signal by the digital sine signal and the digital cosine signal (digital sine amplitude value and digital cosine value) obtained in step 12 to obtain I and Q baseband signals;

[0040] Step 16, the channel combiner module integrates the signal modulation module outputs of all visible satellites, and finally outputs only two baseband signals, I and Q. The two baseband signals, I and Q, can generate 8-bit or 4-bit baseband signals according to the requirements of the receiver baseband signal processing module;

[0041] Step 17, the channel control module is the core of the entire FPGA signal generation unit. It can dynamically adjust the number of channels allocated to visible satellites, and can also generate baseband signals for special scenarios such as satellite loss according to user needs. The channel control module receives the satellite quantity information sent by STM32;

[0042] Step 18, FPGA communicates with STM32 through the serial communication module. After FPGA generates the current signal, it sends a data update signal to STM32 through the serial port.

[0043] Step 19, the serial port receiving port of STM32 receives the data update signal of FPGA, and repeats steps 1 to 8 to generate the information parameters at the next moment;

[0044] Step 20, FPGA receives the information parameters of the next moment transmitted by STM32, and repeats steps 9 to 17 to generate the signal of the next moment.

[0045] Preferably, in step 11, the ranging code generation module receives the satellite number of the visible satellite at the current moment through the serial communication module of the FPGA, selects the tap sequence of each satellite, and generates a ranging code sequence with a code rate of 2.046 MHz and a code period of 1 s through the control of the code phase and code frequency control word at the current moment;

[0046] In step 12, the carrier generation module uses DDS to generate a digital sine signal and a digital cosine signal of the required frequency and phase; the phase control word is a preset carrier initial phase value, and the step size of the phase accumulator is the carrier frequency control word received by the serial communication module of the FPGA. Under the control of the phase control word and the frequency control word, the carrier generation module generates a digital sine signal and a digital cosine signal of the required frequency and phase;

[0047] In step 14, the navigation message generation module receives the navigation message and the navigation message start bit of each visible satellite through the serial communication module of the FPGA to generate the navigation message at the current moment.

[0048] Preferably, the static scene simulation of the receiver in step 2 comprises the following steps:

[0049] The user uses the onboard buttons of the STM32 to select the motion state of the receiver. If the receiver is selected to be in a stationary state, the STM32 will read the three-dimensional coordinates that have been entered in advance as the position of the receiver;

[0050] STM32 executes steps 5 to 7 to generate satellite signal parameters received by the receiver when the satellite is at different positions;

[0051] STM32 uses the serial port transmitter to send the generated signal parameters to the FPGA. The FPGA uses the received satellite signal parameters to simulate the baseband signal received when the receiver is in a static scene.

[0052] Preferably, the dynamic scene simulation of the receiver in step 2 comprises the following steps:

[0053] The user uses the onboard buttons of STM32 to select the motion state of the receiver. If the receiver is selected to be in motion, STM32 will read the motion trajectory of the receiver from the SD card. The motion trajectory is saved in the form of three-dimensional coordinate points in space. After reading the motion trajectory, STM32 will read the coordinate position of the receiver at the set time interval. The coordinate position will be used to generate satellite signal parameters.

[0054] STM32 executes steps 5 to 7 to generate satellite signal parameters when the receiver is at different positions;

[0055] STM32 uses the serial port transmitter to send the generated signal parameters to the FPGA. The FPGA uses the received satellite signal parameters to simulate the baseband signal received by the receiver in a high dynamic scenario.

[0056] Preferably, in step 17, the satellite lock-out signal is generated by one of the following methods:

[0057] Method 1: By adjusting the gain of the satellite signal in real time to simulate the generation of the satellite unlock signal, when the gain of the satellite signal is less than half of the normal satellite signal gain, it will be determined that the current satellite is unlocked; in STM32, the information parameters of the satellite, including the navigation message, satellite number, code phase, carrier frequency control word and the start bit of the navigation message will be removed; then, the FPGA will determine the number of satellites transmitted by STM32 in real time to increase or decrease the number of channels generating the baseband signal;

[0058] Method 2: Artificially simulate the generation of satellite unlocking signals, mainly used to test the receiver loop performance. In the STM32 signal parameter calculation unit, you can manually specify certain satellites to be unlocked. In this way, when sending signal parameters to the FPGA serial port receiving module, the signal parameters of these satellites will no longer be sent, thereby achieving the effect of simulating satellite unlocking;

[0059] Method 3: Change the modulation mode of the signal. The satellite signal modulation mode is changed through FPGA. When the simulated satellite unlock signal is generated, the modulation mode of several signal modulation channels in the FPGA can be changed, for example, from binary phase shift keying (BPSK) to quaternary phase shift keying (QPSK) to simulate the satellite signal unlock situation, so as to test whether the receiver baseband signal processing loop can correctly identify the loop unlock situation.

[0060] Preferably, according to the present invention, the channel control module of the FPGA adjusts the process of the number of channels of visible satellites in real time. In order to save hardware resources, the channel control module of the FPGA has the function of adjusting the number of channels in real time. By monitoring the change of the number of satellites of the STM32 signal generating unit, the number of channels of the signal modulation module can be adjusted in real time. In addition, the user can also make artificial adjustments according to the test requirements to meet different test requirements. For example, when testing the sensitivity of the receiver baseband signal processing module, only a single-channel baseband signal can be generated.

[0061] Preferably, in step 6, the simulation of a scenario in which the receiver is subjected to multipath interference comprises the following steps:

[0062] (1) Select a certain system time of the signal generator as the occurrence time of multipath interference;

[0063] (2) Select a visible satellite channel in step 4 as the multipath generation channel;

[0064] (3) Manually set the multipath attenuation coefficient. Usually, the multipath attenuation coefficient is a decimal between 0 and 1. Multipath interference = attenuation coefficient / (1-attenuation coefficient);

[0065] (4) Select a certain system time of the signal generator as the end time of multipath interference;

[0066] (5) End the multipath interference simulation of the selected channel.

[0067] Preferably, in step 6, the receiver atmosphere delay scene simulation includes the following steps:

[0068] A. Calculate the geocentric angle between the receiver and the satellite penetration point using the formula (I) in radians.

[0069]

[0070] In formula (I), R is the radius of the earth, E is the satellite elevation angle obtained in step 3, in radians; h is the ionosphere height;

[0071] B. Calculate the geographic latitude φ of the ionospheric puncture point M and geographic longitude λ MThe puncture point is the intersection of the receiver and satellite line with the ionosphere, and the geographic latitude is φ M The calculation formula is as follows: geographic longitude λ M The calculation formula is as follows:

[0072] φ M =arcsin(sinφ u cosψ+cosφ u sinψcosA)(Ⅱ)

[0073]

[0074] In formula (II) and formula (III), φ u is the receiver latitude obtained in step 2, λ u is the receiver longitude obtained in step 2, and A is the satellite azimuth obtained in step 3;

[0075] C. Calculate the cosine curve amplitude A2 and cosine curve period A4 of the daytime ionospheric delay; the calculation formula of the cosine curve amplitude A2 is as shown in formula (IV), and the calculation formula of the cosine curve period A4 is as shown in formula (V):

[0076]

[0077]

[0078] In formula (IV) and formula (V), α n and β n is the ionospheric delay parameter in the visible satellite navigation message, where α n Encoded in the 5th and 6th words of the 1st subframe of the navigation message, β n Encoded in word 7 of subframe 1;

[0079] D. Ionospheric Zenith Delay I Z The calculation formula is as follows (VI):

[0080]

[0081] In formula (VI), t is the time at which the line connecting the receiver and the satellite intersects the ionosphere;

[0082] E. Calculate the ionospheric delay I of the signal propagation path ions , ionospheric delay I ions The calculation formula is as follows:

[0083]

[0084] Preferably, in step 7, the code phase calculation process at the signal transmission time is:

[0085] Assume that the system update time is Δt, the time for sending a subframe of the navigation message is 6 seconds, the pseudorange at the time of signal transmission is ρ1, and the speed of light in a vacuum c is 299792458 m / s. The code phase codephase at the time of signal transmission can be calculated by the following formula:

[0086] ms=((Δt+6)-ρ1 / c)*1000 (VIII)

[0087] ims=floor(ms) (IX)

[0088] codephase = (ms-ims) * 2046 (X)

[0089] In formula (IX), floor is a rounding function, which directly takes the left value closest to the required value on the number axis, that is, the largest integer value not greater than the required value. In formula (X), 2046 is the number of code chips corresponding to one code period of the Beidou satellite ranging code;

[0090] The process of calculating the start bit of the navigation message data at the time of signal transmission is as follows:

[0091] The data start bit of the navigation message mainly includes the bit ibit of the word iword that should be sent at the current moment. iword and ibit can be calculated by the following formula:

[0092] iword=ims / 600 (XI)

[0093] dms=ims-iword*600 (XII)

[0094] ibit=dms / 20 (XIII)

[0095] The physical meaning of 600 in formula (XI) and formula (XII) is that the propagation time of one word in the navigation message is 600 milliseconds, and the physical meaning of 20 in formula (XIII) is that the propagation time of one bit of navigation data in the navigation message is 20 milliseconds;

[0096] The process of calculating the Doppler frequency shift value at the time of signal transmission is:

[0097] Assume that the pseudorange at the current moment is ρ1, the pseudorange at the previous moment is ρ0, and the system update time is Δt, then the Doppler frequency shift f at the current signal transmission moment is carr It can be calculated by the following formula:

[0098]

[0099] In formula (XIV), f BDIt is the nominal carrier frequency of the Beidou satellite signal. For example, the carrier frequency of the Beidou B1I signal is 1561.098 MHz.

[0100] For any details not provided in the present invention, please refer to the prior art.

[0101] The beneficial effects of the present invention are:

[0102] 1. The multifunctional Beidou baseband signal generator based on STM32 and FPGA of the present invention can simulate a variety of satellite signal scenarios, can generate a variety of satellite signals, and provide a comprehensive test environment for the receiver. Including signals in high dynamic, multipath interference and satellite unlocking scenarios that are not easy to collect satellite signals. According to different test requirements, various errors in the real environment can be flexibly selected or removed. For example: when checking the accuracy of the receiver baseband signal processing module, a signal without any error can be generated. It provides a more convenient and efficient solution for the performance testing and performance optimization of the receiver, with high practicality and application value.

[0103] 2. The multifunctional Beidou baseband signal generator based on STM32 and FPGA of the present invention is implemented based on FPGA and STM32 chips. Through the Beidou signal processing algorithm built into the FPGA chip and the control logic in the STM32 chip, the generation of multiple satellite signals can be realized. STM32 adopts embedded software development with strong floating-point computing ability, short software algorithm development cycle and high flexibility. FPGA signal generation unit can realize Beidou baseband signal generation with simple circuit design and less hardware resources. When only the sensitivity of the receiver baseband signal module needs to be tested, only a single-channel Beidou satellite baseband signal can be generated, and the generator does not need to perform large-scale information parameter calculation, thereby saving most of the software and hardware resources. At the same time, FPGA has a strong parallel signal processing capability, and baseband signal generation can be realized in real time and quickly. BRIEF DESCRIPTION OF THE DRAWINGS

[0104] The drawings in the specification, which constitute a part of the present application, are used to provide further understanding of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0105] Figure 1 This is a schematic diagram of the structure of the multifunctional Beidou baseband signal generator based on STM32 and FPGA of the present invention;

[0106] Figure 2 This is a schematic diagram of the working method of the multifunctional Beidou baseband signal generator based on STM32 and FPGA;

[0107] Figure 3 It is a structural diagram of the signal generating unit of the FPGA of the present invention. DETAILED DESCRIPTION

[0108] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the drawings in the implementation of this specification, but are not limited to this. Anything not fully described in the present invention shall be based on the conventional technology in the art.

[0109] Example 1

[0110] A multifunctional Beidou baseband signal generator based on STM32 and FPGA, such as Figure 1 As shown, it is mainly used to simulate the generation of Beidou satellite baseband signals, including interconnected STM32 and FPGA. STM32 mainly completes signal parameter calculation, while FPGA is mainly responsible for signal generation. STM32 includes a signal parameter calculation unit, which is used for time / coordinate system conversion, receiver motion mode selection, navigation message calculation, satellite visibility calculation, pseudo-range real-time calculation, satellite trajectory simulation, satellite transmission error calculation and satellite initial state parameter calculation;

[0111] FPGA is used to realize the signal generation function, including carrier generation module, ranging code generation module, navigation message generation module, BCH error correction coding module, signal modulation module, channel combiner module, channel control module and serial communication module.

[0112] Example 2

[0113] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, wherein the STM32 first sets the local time, reads and selects a valid ephemeris file matching the local time, then selects the motion state of the receiver, determines the satellite visible at the current moment, generates a corresponding navigation message, calculates the distance between the satellite and the receiver in real time, and calculates the real-time signal parameters of the satellite visible at the current moment; finally, the satellite number and the real-time signal parameters are sent to the FPGA through the serial port;

[0114] After receiving the satellite number and signal parameters sent by STM32, FPGA configures channels for visible satellites, generates carrier signals and ranging code signals for each visible satellite according to the signal parameters, generates navigation messages, and then completes digital baseband signal modulation of each analog channel. The signal bit width can be selected as 8 bits or 4 bits; finally, a data update signal is sent to STM32 through the serial communication module to start receiving the signal parameters at the next moment and generate the signal at the next moment.

[0115] Example 3

[0116] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, as described in Example 2, except that, in this embodiment, a baseband signal generating a Beidou B1I frequency point and a stationary receiver is used as an example, and the specific implementation steps of the signal generator are as follows:

[0117] Step 1, STM32 first sets the local time, and then reads the ephemeris file stored in the SD card that matches the local time;

[0118] Step 2, the user selects the motion state of the receiver. When the receiver is in a stationary state, the spatial three-dimensional coordinates of the receiver need to be manually input. The receiver coordinates set in this embodiment are latitude 35°40'52.6728", longitude 139°45'58.489200000000004", and altitude 10m;

[0119] Step 3, calculate the satellite position at the current moment through the satellite orbit parameters in the ephemeris file in step 1, and then calculate the relative position of the two through the receiver position obtained in step 2, so as to obtain the elevation angle and azimuth angle of the satellite. If the elevation angle is greater than 5°, it is considered visible, otherwise it is invisible;

[0120] Step 4, allocate channels for the visible satellites in step 3, set the maximum number of channels to 12, extract the ephemeris data of each satellite according to the format of the ephemeris file, and generate the corresponding navigation message for each satellite according to the navigation message structure given in the official signal interface file;

[0121] Step 5, calculate the satellite position at the current moment according to the satellite navigation message read at the current moment, obtain the position of the receiver through step 2; calculate the pseudorange at the current moment through the positions of the two;

[0122] Step 6, considering adding the atmospheric delay in the process of simulating signal transmission and the multipath interference suffered by the receiver into the pseudorange calculated according to step 5;

[0123] The atmosphere will slow down the propagation speed of satellite signals and increase the transmission time of satellite signals. To calculate the impact of atmospheric delay on pseudorange, we can first estimate the delay caused by the satellite signal passing through the atmosphere through the error model, and then multiply the delay by the speed of light and add it to the pseudorange calculated in step 5 to obtain the real-time pseudorange with the atmospheric delay added. Multipath interference can estimate the pseudorange change caused by the multipath effect through the multipath attenuation coefficient, and add the change to the pseudorange obtained in step 5 to obtain the pseudorange value under multipath interference.

[0124] Step 7: Calculate the current satellite ranging code phase and navigation message data start bit through the pseudorange calculated in step 6. Calculate the carrier Doppler frequency shift value at the current moment through the relative speed change between the satellite and the receiver.

[0125] Step 8, calculate the carrier frequency control word according to the carrier Doppler frequency shift value obtained in step 7 f carr is the Doppler frequency shift value, f IF The preset baseband signal center frequency, f s is the sampling frequency set by the system, and N is the phase accumulator step size;

[0126] The satellite number, navigation message, ranging code phase, carrier frequency control word, and navigation message start bit of each visible satellite are sent to the FPGA through the serial port in channel order so that the FPGA can generate the designed baseband signal;

[0127] Step 9, after the FPGA serial port receiving port receives the information parameters sent by STM32, the parameters of all visible satellites are stored in a FIFO with a bit width of 24 and a depth of 1024;

[0128] Step 10, by reading the data written into FIFO in step 9, first obtain the satellite number of each visible satellite, and then obtain the ranging code phase, carrier frequency control word, navigation message start bit, and navigation message of each satellite;

[0129] Step 11, the ranging code generation module adopts DDS technology through the satellite number and ranging code phase received in step 10. DDS is composed of a phase control word, a frequency control word and a phase accumulator. In this embodiment, the bit width of the phase accumulator is set to 32 bits, and the code phase received from each satellite is used as the initial value of the phase control word. The code rate is set to 2.046MHz, the sampling frequency is 40MHz, and the frequency control word is (2046000*2^32) / 40000000. Under the control of the code phase control word and the frequency control word, a ranging code sequence with the corresponding code phase and code rate is generated;

[0130] Step 12, after receiving the carrier frequency control word through step 10, the carrier generation module uses the frequency direct synthesis technology to generate a digital sine signal and a digital cosine signal. In this embodiment, the center frequency of the signal is set to 0.098MHz, and the carrier frequency control word of each satellite obtained through step 9 is used as the initial value of the phase accumulator register. The step size of the phase accumulator is (98000*2^32) / 40000000. The digital sine signal and the digital cosine signal of the required frequency and phase are obtained by the table lookup method;

[0131] Step 13: The navigation message obtained in step 10 will be input into the BCH error correction coding module. The BCH error correction coding module uses the BCH (11, 15, 1) coding method and the official error correction technology for error correction processing;

[0132] Step 14, the process of the navigation message generation module generating the navigation message at the current moment by using the navigation message obtained in step 13 and the navigation message start bit obtained in step 10 is as follows: the navigation message start bit obtained in step 10 is used to select the bit of the word of the navigation message obtained in step 13 to be sent at the current moment, and then the navigation message to be sent at the current moment is determined by the value of the bit corresponding to the selected navigation message;

[0133] Step 15: The signal modulation module multiplies the navigation message obtained in step 14 by the ranging code sequence obtained in step 11, performs spread spectrum modulation, and multiplies the spread spectrum modulated signal by the digital sine signal and the digital cosine signal (digital sine amplitude value and digital cosine value) obtained in step 12 to obtain I and Q baseband signals;

[0134] Step 16: The channel combiner module integrates the signal modulation module outputs of all visible satellites, and finally outputs only two baseband signals, I and Q. In this embodiment, the bit width of the two baseband signals, I and Q, is 4 bits.

[0135] Step 17, the channel control module is the core of the entire FPGA signal generation unit, which can dynamically adjust the number of channels allocated to visible satellites, and can also generate baseband signals for special scenarios such as satellite loss according to user needs. The channel control module receives the satellite number information sent by STM32. In this embodiment, the number of channels for controlling visible satellites is 12 channels;

[0136] Step 18, FPGA communicates with STM32 through the serial communication module. After FPGA generates the current signal, it sends a data update signal to STM32 through the serial port sending port. The data update time interval set in this embodiment is 0.1s;

[0137] Step 19, the serial port receiving port of STM32 receives the data update signal of FPGA, and repeats steps 1 to 8 to generate the information parameters at the next moment;

[0138] Step 20, FPGA receives the information parameters of the next moment transmitted by STM32, and repeats steps 9 to 17 to generate the signal of the next moment.

[0139] Example 4

[0140] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, as described in Example 3, except that, in step 11, a ranging code generation module receives the satellite number of a visible satellite at the current moment through a serial communication module of the FPGA, selects a tap sequence for each satellite, and generates a ranging code sequence with a code rate of 2.046 MHz and a code period of 1 s through the control of a code phase and a code frequency control word at the current moment;

[0141] In step 12, the carrier generation module uses DDS to generate a digital sine signal and a digital cosine signal of the required frequency and phase; the phase control word is a preset carrier initial phase value, and the step size of the phase accumulator is the carrier frequency control word received by the serial communication module of the FPGA. Under the control of the phase control word and the frequency control word, the carrier generation module generates a digital sine signal and a digital cosine signal of the required frequency and phase;

[0142] In step 14, the navigation message generation module receives the navigation message and the navigation message start bit of each visible satellite through the serial communication module of the FPGA to generate the navigation message at the current moment.

[0143] Example 5

[0144] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, as described in Example 3, except that the static scene simulation of the receiver in step 2 comprises the following steps:

[0145] The user uses the onboard buttons of the STM32 to select the motion state of the receiver. If the receiver is selected to be in a stationary state, the STM32 will read the three-dimensional coordinates that have been entered in advance as the position of the receiver;

[0146] STM32 executes steps 5 to 7 to generate satellite signal parameters received by the receiver when the satellite is at different positions;

[0147] STM32 uses the serial port transmitter to send the generated signal parameters to the FPGA. The FPGA uses the received satellite signal parameters to simulate the baseband signal received when the receiver is in a static scene.

[0148] The dynamic scene simulation of the receiver in step 2 includes the following steps:

[0149] The user uses the onboard buttons of STM32 to select the motion state of the receiver. If the receiver is selected to be in motion, STM32 will read the motion trajectory of the receiver from the SD card. The motion trajectory is saved in the form of three-dimensional coordinate points in space. After reading the motion trajectory, STM32 will read the coordinate position of the receiver at the set time interval. The coordinate position will be used to generate satellite signal parameters.

[0150] STM32 executes steps 5 to 7 to generate satellite signal parameters when the receiver is at different positions;

[0151] STM32 uses the serial port transmitter to send the generated signal parameters to the FPGA. The FPGA uses the received satellite signal parameters to simulate the baseband signal received by the receiver in a high dynamic scenario.

[0152] Example 6

[0153] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, as described in Example 3, except that, in step 17, the generation of the satellite unlock signal selects one of the following methods:

[0154] Method 1: By adjusting the gain of the satellite signal in real time to simulate the generation of the satellite unlock signal, when the gain of the satellite signal is less than half of the normal satellite signal gain, it will be determined that the current satellite is unlocked; in STM32, the information parameters of the satellite, including the navigation message, satellite number, code phase, carrier frequency control word and the start bit of the navigation message will be removed; then, the FPGA will determine the number of satellites transmitted by STM32 in real time to increase or decrease the number of channels generating the baseband signal;

[0155] Method 2: Artificially simulate the generation of satellite unlocking signals, mainly used to test the receiver loop performance. In the STM32 signal parameter calculation unit, you can manually specify certain satellites to be unlocked. In this way, when sending signal parameters to the FPGA serial port receiving module, the signal parameters of these satellites will no longer be sent, thereby achieving the effect of simulating satellite unlocking;

[0156] Method 3: Change the modulation mode of the signal. The satellite signal modulation mode is changed through FPGA. When the simulated satellite unlock signal is generated, the modulation mode of several signal modulation channels in the FPGA can be changed, for example, from binary phase shift keying (BPSK) to quaternary phase shift keying (QPSK) to simulate the satellite signal unlock situation, so as to test whether the receiver baseband signal processing loop can correctly identify the loop unlock situation.

[0157] Example 7

[0158] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, as described in Example 3, except that in step 6, a multipath interference scenario simulation is performed on the receiver, comprising the following steps:

[0159] (1) Select a certain system time of the signal generator as the occurrence time of multipath interference;

[0160] (2) Select a visible satellite channel in step 4 as the multipath generation channel;

[0161] (3) Manually set the multipath attenuation coefficient. Usually, the multipath attenuation coefficient is a decimal between 0 and 1. Multipath interference = attenuation coefficient / (1-attenuation coefficient);

[0162] (4) Select a certain system time of the signal generator as the end time of multipath interference;

[0163] (5) End the multipath interference simulation of the selected channel.

[0164] Example 8

[0165] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, as described in Example 3, except that, in step 6, the receiver atmospheric delay scene simulation comprises the following steps:

[0166] A. Calculate the geocentric angle between the receiver and the satellite penetration point using the formula (I) in radians.

[0167]

[0168] In formula (I), R is the radius of the earth, E is the satellite elevation angle obtained in step 3, in radians; h is the ionosphere height;

[0169] B. Calculate the geographic latitude φ of the ionospheric puncture point M and geographic longitude λ M The puncture point is the intersection of the receiver and satellite line with the ionosphere, and the geographic latitude is φ M The calculation formula is as follows: geographic longitude λ M The calculation formula is as follows:

[0170] φ M =arcsin(sinφ u cosψ+cosφ u sinψcosA)(Ⅱ)

[0171]

[0172] In formula (II) and formula (III), φ u is the receiver latitude obtained in step 2, λ u is the receiver longitude obtained in step 2, and A is the satellite azimuth obtained in step 3;

[0173] C. Calculate the cosine curve amplitude A2 and cosine curve period A4 of the daytime ionospheric delay; the calculation formula of the cosine curve amplitude A2 is as shown in formula (IV), and the calculation formula of the cosine curve period A4 is as shown in formula (V):

[0174]

[0175]

[0176] In formula (IV) and formula (V), α n and β n is the ionospheric delay parameter in the visible satellite navigation message, where α n Encoded in the 5th and 6th words of the 1st subframe of the navigation message, β n Encoded in word 7 of subframe 1;

[0177] D. Ionospheric Zenith Delay I Z The calculation formula is as follows:

[0178]

[0179] In formula (VI), t is the time at which the line connecting the receiver and the satellite intersects the ionosphere;

[0180] E. Calculate the ionospheric delay I of the signal propagation path ions , ionospheric delay I ions The calculation formula is as follows:

[0181]

[0182] Example 9

[0183] A working method of a multifunctional Beidou baseband signal generator based on STM32 and FPGA, as described in Example 3, except that, in step 7, the code phase calculation process at the signal transmission time is:

[0184] Assume that the system update time is Δt, the time for sending a subframe of the navigation message is 6 seconds, the pseudorange at the time of signal transmission is ρ1, and the speed of light in a vacuum c is 299792458 m / s. The code phase codephase at the time of signal transmission can be calculated by the following formula:

[0185] ms=((Δt+6)-ρ1 / c)*1000 (VIII)

[0186] ims=floor(ms) (IX)

[0187] codephase = (ms-ims) * 2046 (X)

[0188] In formula (IX), floor is a rounding function, which directly takes the left value closest to the required value on the number axis, that is, the largest integer value not greater than the required value. In formula (X), 2046 is the number of code chips corresponding to one code period of the Beidou satellite ranging code;

[0189] The process of calculating the start bit of the navigation message data at the time of signal transmission is as follows:

[0190] The data start bit of the navigation message mainly includes the bit ibit of the word iword that should be sent at the current moment. iword and ibit can be calculated by the following formula:

[0191] iword=ims / 600 (XI)

[0192] dms=ims-iword*600 (XII)

[0193] ibit=dms / 20 (XIII)

[0194] The physical meaning of 600 in formula (XI) and formula (XII) is that the propagation time of one word in the navigation message is 600 milliseconds, and the physical meaning of 20 in formula (XIII) is that the propagation time of one bit of navigation data in the navigation message is 20 milliseconds;

[0195] The process of calculating the Doppler frequency shift value at the time of signal transmission is:

[0196] Assume that the pseudorange at the current moment is ρ1, the pseudorange at the previous moment is ρ0, and the system update time is Δt, then the Doppler frequency shift f at the current signal transmission moment is carr It can be calculated by the following formula:

[0197]

[0198] In formula (XIV), f BD is the nominal carrier frequency of the Beidou satellite signal. The carrier frequency of the Beidou B1I signal is 1561.098 MHz.

[0199] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A multifunctional Beidou baseband signal generator based on STM32 and FPGA, It is characterized in that It includes an STM32 and an FPGA connected to each other, the STM32 includes a signal parameter calculation unit, and the signal parameter calculation unit is used for time / coordinate system conversion, receiver motion mode selection, navigation message calculation, satellite visibility calculation, pseudo-range real-time calculation, satellite trajectory simulation, satellite transmission error calculation and satellite initial state parameter calculation; FPGA is used to realize the signal generation function, including carrier generation module, ranging code generation module, navigation message generation module, BCH error correction coding module, signal modulation module, channel combiner module, channel control module and serial communication module; Based on the working method of the multifunctional Beidou baseband signal generator of STM32 and FPGA, STM32 first sets the local time, reads and selects the valid ephemeris file that matches the local time, then selects the motion state of the receiver, determines the satellite visible at the current moment, and generates the corresponding navigation message, calculates the distance between the satellite and the receiver in real time, and calculates the real-time signal parameters of the satellite visible at the current moment; finally, the satellite number and real-time signal parameters are sent to the FPGA through the serial port; After receiving the satellite number and signal parameters sent by STM32, FPGA configures channels for visible satellites, generates carrier signals and ranging code signals for each visible satellite according to the signal parameters, generates navigation messages, and then completes digital baseband signal modulation for each analog channel, with the signal bit width selected as 8 bits or 4 bits; finally, it sends a data update signal to STM32 through the serial communication module, starts receiving the signal parameters at the next moment and generates the signal at the next moment; The specific implementation steps of the signal generator are as follows: Step 1, STM32 first sets the local time, and then reads the ephemeris file stored in the SD card that matches the local time; Step 2: The user selects the motion state of the receiver. The motion modes of the receiver are divided into two modes: dynamic and static. In the dynamic mode, the receiver is used to simulate the baseband signal of the high dynamic scene of the receiver; in the static mode, the position of the receiver is fixed, and the baseband signal suitable for absolute single point positioning is generated. The position of the receiver is expressed in the form of longitude, latitude and altitude; Step 3, obtain the orbital parameters of each satellite through the ephemeris file in step 1, and calculate the satellite position at the current moment, and then calculate the relative position of the two through the receiver position obtained in step 2, so as to obtain the elevation angle and azimuth angle of the satellite, and determine whether the satellite elevation angle is greater than the threshold value. If it is greater than the threshold value, it is judged to be visible, otherwise it is invisible; Step 4, assign channels to the visible satellites in step 3 and perform navigation message calculation; Step 5, calculate the geographical location of each visible satellite through the orbital parameters in the visible satellite navigation message in step 3; obtain the position of the receiver through step 2; and calculate the pseudorange at the current moment through the positions of the two; Step 6: According to the user's test requirements, the atmospheric delay in the simulated signal transmission process and the multipath interference suffered by the receiver are considered in the pseudorange calculated in step 5; The atmosphere will slow down the propagation speed of satellite signals and increase the transmission time of satellite signals. The influence of atmospheric delay on pseudorange is calculated. The delay caused by the satellite signal passing through the atmosphere is estimated through the error model. Then the delay is multiplied by the speed of light and added to the pseudorange calculated in step 5 to obtain the real-time pseudorange with the atmospheric delay added. Multipath interference estimates the pseudorange change caused by the multipath effect through the multipath attenuation coefficient. The change is added to the pseudorange obtained in step 5 to obtain the pseudorange value under multipath interference. Step 7, using the pseudorange calculated in step 6, calculate the ranging code phase, the navigation message data start bit, and the Doppler frequency shift value; Step 8, calculate the carrier frequency control word according to the carrier Doppler frequency shift value obtained in step 7 f carr is the Doppler frequency shift value, f IF The preset baseband signal center frequency, f s is the sampling frequency set by the system, and N is the phase accumulator step size; The satellite number, navigation message, ranging code phase, carrier frequency control word, and navigation message start bit of each visible satellite are sent to the FPGA through the serial port in channel order so that the FPGA can generate the designed baseband signal; Step 9, after the FPGA serial port receiving port receives the information parameters sent by STM32, it first stores the parameters of all visible satellites into FIFO; Step 10, by reading the data written into FIFO in step 9, first obtain the satellite number of each visible satellite, and then obtain the ranging code phase, carrier frequency control word, navigation message start bit, and navigation message of each satellite; Step 11, through the satellite number and the ranging code phase received in step 10, the ranging code generation module generates a ranging code sequence of corresponding code phase and code rate under the drive of the code phase and code frequency control word, that is, generates the ranging code of the corresponding Beidou satellite; Step 12, after receiving the carrier frequency control word in step 10, the carrier generation module generates a digital sine signal and a digital cosine signal of the required frequency and phase according to the preset carrier initial phase and the received carrier frequency control word; Step 13, the navigation message obtained in step 10 will be input into the BCH error correction coding module, and the BCH error correction coding module follows the coding method of BCH (11, 15, 1); Step 14, the process of the navigation message generation module generating the navigation message at the current moment by using the navigation message obtained in step 13 and the navigation message start bit obtained in step 10 is as follows: the navigation message start bit obtained in step 10 is used to select the bit of the word of the navigation message obtained in step 13 to be sent at the current moment, and then the navigation message to be sent at the current moment is determined by the value of the bit corresponding to the selected navigation message; Step 15: The signal modulation module multiplies the navigation message obtained in step 14 by the ranging code sequence obtained in step 11 to perform spread spectrum modulation, and multiplies the spread spectrum modulated signal by the digital sine signal and the digital cosine signal obtained in step 12 to obtain I and Q baseband signals; Step 16, the channel combiner module integrates the signal modulation module outputs of all visible satellites, and finally outputs only two baseband signals, I and Q. The two baseband signals, I and Q, generate 8-bit or 4-bit baseband signals according to the requirements of the receiver baseband signal processing module; Step 17, the channel control module is the core of the entire FPGA signal generation unit, which can dynamically adjust the number of channels allocated to visible satellites and generate baseband signals for satellite loss scenarios according to user needs. The channel control module receives satellite quantity information sent by STM32; Step 18, FPGA communicates with STM32 through the serial communication module. After FPGA generates the current signal, it sends a data update signal to STM32 through the serial port sending port; Step 19, the serial port receiving port of STM32 receives the data update signal of FPGA, and repeats steps 1 to 8 to generate the information parameters at the next moment; Step 20, FPGA receives the information parameters of the next moment transmitted by STM32, and repeats steps 9 to 17 to generate the signal of the next moment.

2. The multifunctional Beidou baseband signal generator based on STM32 and FPGA according to claim 1, It is characterized in that In step 11, the ranging code generation module receives the satellite number of the visible satellite at the current moment through the serial communication module of the FPGA, selects the tap sequence of each satellite, and generates a ranging code sequence with a code rate of 2.046MHz and a code period of 1s through the control of the code phase and code frequency control word at the current moment; In step 12, the carrier generation module uses DDS to generate a digital sine signal and a digital cosine signal of the required frequency and phase; the phase control word is a preset carrier initial phase value, and the step size of the phase accumulator is the carrier frequency control word received by the serial communication module of the FPGA. Under the control of the phase control word and the frequency control word, the carrier generation module generates a digital sine signal and a digital cosine signal of the required frequency and phase; In step 14, the navigation message generation module receives the navigation message and the navigation message start bit of each visible satellite through the serial communication module of the FPGA to generate the navigation message at the current moment.

3. The multifunctional Beidou baseband signal generator based on STM32 and FPGA according to claim 1, It is characterized in that The static scene simulation of the receiver in step 2 includes the following steps: The user uses the onboard buttons of the STM32 to select the motion state of the receiver. If the receiver is selected to be in a stationary state, the STM32 reads the 3D coordinates that have been entered in advance as the position of the receiver; STM32 executes steps 5 to 7 to generate satellite signal parameters received by the receiver when the satellite is at different positions; STM32 uses the serial port transmitter to send the generated signal parameters to the FPGA. The FPGA uses the received satellite signal parameters to simulate the baseband signal received when the receiver is in a static scene.

4. The multifunctional Beidou baseband signal generator based on STM32 and FPGA according to claim 1, It is characterized in that The dynamic scene simulation of the receiver in step 2 includes the following steps: The user uses the onboard buttons of STM32 to select the motion state of the receiver. If the receiver is selected to be in motion, STM32 will read the motion trajectory of the receiver from the SD card. The motion trajectory is saved in the form of three-dimensional coordinate points in space. After reading the motion trajectory, STM32 reads the coordinate position of the receiver at the set time interval. The coordinate position will be used to generate satellite signal parameters. STM32 executes steps 5 to 7 to generate satellite signal parameters when the receiver is at different positions; STM32 uses the serial port transmitter to send the generated signal parameters to the FPGA. The FPGA uses the received satellite signal parameters to simulate the baseband signal received by the receiver in a high dynamic scenario.

5. The multifunctional Beidou baseband signal generator based on STM32 and FPGA according to claim 1, It is characterized in that In step 17, the satellite lock-out signal is generated by one of the following methods: Method 1: The satellite loss signal is simulated by adjusting the gain of the satellite signal in real time. When the gain of the satellite signal is less than half of the normal satellite signal gain, it is determined that the current satellite is lost. Method 2: artificially simulate the generation of satellite unlocking signals to test the receiver loop performance; Method 3: Change the modulation mode of the signal and change the satellite signal modulation mode through FPGA.

6. The multifunctional Beidou baseband signal generator based on STM32 and FPGA according to claim 1, It is characterized in that In step 6, the receiver is subjected to multipath interference scenario simulation, including the following steps: (1) Select a certain system time of the signal generator as the occurrence time of multipath interference; (2) Select a visible satellite channel in step 4 as the multipath generation channel; (3) Manually set the multipath attenuation coefficient. The multipath attenuation coefficient is a decimal between 0 and 1. Multipath interference = attenuation coefficient / (1-attenuation coefficient); (4) Select a certain system time of the signal generator as the end time of multipath interference; (5) End the multipath interference simulation of the selected channel.

7. The multifunctional Beidou baseband signal generator based on STM32 and FPGA according to claim 6, It is characterized in that In step 6, the receiver atmosphere delay scenario simulation includes the following steps: A. Calculate the geocentric angle between the receiver and the satellite penetration point using the formula (I) in radians. In formula (I), R is the radius of the earth, E is the satellite elevation angle obtained in step 3, in radians; h is the ionosphere height; B. Calculate the geographic latitude φ of the ionospheric puncture point M and geographic longitude λ M The puncture point is the intersection of the receiver and satellite line with the ionosphere, and the geographic latitude is φ M The calculation formula is as follows: geographic longitude λ M The calculation formula is as follows: φ M =arcsin(sinφ u cosψ+cosφ u sinψcosA)(Ⅱ) In formula (II) and formula (III), φ u is the receiver latitude obtained in step 2, λ u is the receiver longitude obtained in step 2, and A is the satellite azimuth obtained in step 3; C. Calculate the amplitude of the cosine curve of the daytime ionospheric delay A 2 and cosine curve period A 4 ; Cosine curve amplitude A 2 The calculation formula is as follows: (IV), the period of the cosine curve is A 4 The calculation formula is as follows: In formula (IV) and formula (V), α n and β n is the ionospheric delay parameter in the visible satellite navigation message, where α n Encoded in the 5th and 6th words of the 1st subframe of the navigation message, β n Encoded in word 7 of subframe 1; D. Ionospheric Zenith Delay I Z The calculation formula is as follows: In formula (VI), t is the time at which the line connecting the receiver and the satellite intersects the ionosphere; E. Calculate the ionospheric delay I of the signal propagation path ions , ionospheric delay I ions The calculation formula is as follows:

8. The multifunctional Beidou baseband signal generator based on STM32 and FPGA according to claim 7, It is characterized in that In step 7, the code phase calculation process at the signal transmission time is: Assume that the system update time is Δt, the time for sending a subframe of navigation message is 6 seconds, and the pseudorange at the time of signal transmission is ρ 1 , the speed of light in a vacuum is c, which is 299792458 m / s. The code phase at the time of signal transmission is calculated by the following formula: ms=((Δt+6)-ρ 1 / c)*1000(VIII) ims=floor(ms)(IX) codephase = (ms-ims)*2046(X) In formula (IX), floor is a rounding function, which directly takes the left value closest to the required value on the number axis, that is, the largest integer value not greater than the required value. In formula (X), 2046 is the number of code chips corresponding to one code period of the Beidou satellite ranging code; The process of calculating the start bit of the navigation message data at the time of signal transmission is as follows: The data start bit of the navigation message includes the bit ibit of the word iword that should be sent at the current moment. iword and ibit are calculated by the following formula: iword=ims / 600(XI) dms=ims-iword*600(XII) ibit=dms / 20(XIII) The physical meaning of 600 in formula (XI) and formula (XII) is that the propagation time of one word in the navigation message is 600 milliseconds, and the physical meaning of 20 in formula (XIII) is that the propagation time of one bit of navigation data in the navigation message is 20 milliseconds; The process of calculating the Doppler frequency shift value at the time of signal transmission is: Assume the pseudorange at the current moment is ρ 1 , the pseudorange at the last moment is ρ 0 , the system update time is Δt, then the Doppler frequency shift f at the current signal transmission time carr Calculated by the following formula: In formula (XIV), f BD is the nominal carrier frequency of the Beidou satellite signal.