A method and device for simulating real-time playback of GNSS post-observation files

By encoding GNSS post-observation files and imitating real-time observation data differential time operation, the problem of incompatibility of RINEX and RTCM format data transmission in the prior art is solved, and the data reception accuracy and development efficiency of the development board are improved.

CN118244306BActive Publication Date: 2024-11-12KEPLER SATELLITE TECH (WUHAN) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311702683.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-12
Publication Date
2024-11-12
Estimated Expiration
2043-12-12

AI Technical Summary

Technical Problem

The existing technology cannot support GNSS data transmission in RINEX and RTCM formats at the same time, resulting in data accuracy loss and cannot meet the development board's needs for multi-format data.

Method used

By receiving the observation value files in RTCM format or RINEX format sent by the terminal device, perform encoding operations, sending the standard observation data in RINEX format to the USART serial port of the development board, and performing differential time operation of imitating real-time observation data to achieve Simulation real-time playback of observation files.

Benefits of technology

It improves the accuracy of the development board receiving data, provides real-time solution testing and verification methods, shortens the development cycle, reduces frequent burning and serial port printing and debugging during the troubleshooting process, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118244306B_ABST
    Figure CN118244306B_ABST
Patent Text Reader

Abstract

The present invention proposes a method and device for simulating real-time playback of GNSS post-observation files, the method comprising: receiving observation value files and navigation ephemeris files in RTCM format or RINEX format sent by terminal equipment; encoding standard observation data in RINEX format, and sending the encoded observation data in RINEX format or standard observation data in RTCM format to the USART serial port of the development board epoch by epoch; performing epoch by epoch recognition and simulated real-time observation data differential time operation on the encoded observation data in RINEX format or standard observation data in RTCM format to obtain communication data in RINEX format or communication data in RTCM format; performing simulated real-time time simulation on communication data in RINEX format or RTCM format to realize simulated real-time playback of observation files. The present invention helps to improve the accuracy of data received by the development board.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of satellite navigation and positioning technology, and in particular to a method and device for simulating real-time playback of GNSS post-observation files. Background Art

[0002] The theory of satellite precise orbit determination began in the 1950s. With the development of satellite tracking technology, the improvement of observation accuracy, and the continuous refinement of data processing error models and dynamic models, the accuracy of navigation satellite orbit determination has been significantly improved, especially the orbit determination accuracy of GPS and GLONASS satellites has been improved from the initial hundreds of meters to the current centimeter level. The traditional navigation satellite precise orbit determination method uses satellite tracking data from ground stations, and the geographical distribution of tracking stations will directly affect the accuracy of navigation satellite precise orbit determination. Compared with the GPS, GLONASS and Galileo systems whose entire constellation is medium-orbit satellites (MEO), my country's Beidou, Japan's Quasi-Zenith Satellite (QZSS) and India's Regional Navigation System (IRNSS) use different constellation design characteristics and introduce geosynchronous orbit satellites (GEO) or inclined geosynchronous orbit satellites (IGSO).

[0003] The Chinese patent application with the announcement number CN113253318B discloses a method for remote supercomputing of GNSS data, including the following steps: collecting GNSS raw data, packaging it, and storing it in memory; decrypting and parsing the GNSS raw data in the memory, and storing the GNSS data obtained after decryption and parsing; retrieving the decrypted and parsed GNSS data, performing core operations, obtaining the final solution data, and storing the final solution data; accessing the server through a computer client or a mobile phone to obtain the final solution data or GNSS raw data, and performing single-server deployment, multi-server deployment or cloud service deployment according to the number of users and the amount of GNSS data to complete the remote supercomputing of GNSS data. However, the above scheme cannot realize the simultaneous support of the RINEX format and the RTCM format by the development board, so that the data transmission is subject to the serial communication. When multi-format data transmission is required, it is easy to cause data accuracy loss. Therefore, it is very necessary to provide a method and device for simulating real-time playback of GNSS post-observation files to realize the simultaneous support of the RINEX format and the RTCM format to improve the accuracy of the data received by the development board. Summary of the invention

[0004] In view of this, the present invention proposes a method and device for simulating real-time playback of GNSS post-observation files, which receives RTCM format or RINEX format observation value files sent by terminal equipment and encodes the standard observation data in RINEX format to meet the byte-by-byte reception requirements of the development board, thereby improving the accuracy of the data received by the development board.

[0005] The present invention provides a method for simulating real-time playback of GNSS post-observation files, which is applied to a development board. The method comprises:

[0006] Receiving an observation value file and a navigation ephemeris file in RTCM format or RINEX format sent by a terminal device, wherein the observation value file includes multiple sets of standard observation data in a mobile station and a reference station, the standard observation data represents observation data of the same epoch in the mobile station and the reference station, and the navigation ephemeris file includes broadcast ephemeris;

[0007] Performing an encoding operation on the standard observation data in the RINEX format to obtain the encoded observation data in the RINEX format, and sending the encoded observation data in the RINEX format or the standard observation data in the RTCM format to the USART serial port of the development board epoch by epoch;

[0008] Performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format to obtain communication data in the RINEX format or the communication data in the RTCM format;

[0009] The communication data in the RINEX format or the communication data in the RTCM format is simulated in real time to achieve simulated real-time playback of observation files.

[0010] On the basis of the above technical solution, preferably, the epoch-by-epoch identification and the simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format include:

[0011] Retrieving satellite signal features from a plurality of the standard observation data;

[0012] Identifying satellite information corresponding to each epoch based on the satellite signal characteristics to complete epoch-by-epoch identification of the encoded observation data;

[0013] The UTC time is used as the first internal time of the navigation ephemeris file, and the start time of each epoch in the navigation ephemeris file is used as the time standard to complete the simulated real-time observation data differential time operation on the encoded observation data.

[0014] On the basis of the above technical solution, preferably, the performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format further includes:

[0015] Based on the timestamp of each epoch in the standard observation data in the RTCM format, determining the satellite information corresponding to the timestamp to complete the epoch-by-epoch identification of the standard observation data in the RTCM format;

[0016] The GPS time is used as the second internal time of the navigation ephemeris file, and the start time of each epoch in the navigation ephemeris file is used as the time standard to complete the differential time operation of the simulated real-time observation data of the standard observation data in the RTCM format.

[0017] More preferably, the performing real-time simulation on the communication data in the RINEX format or the communication data in the RTCM format comprises:

[0018] The broadcast ephemeris and the standard observation data in the mobile station and the base station are reordered based on the differential time in the Beidou GPS positioning information, so that the character string composed of the broadcast ephemeris and the standard observation data is input into the development board to perform real-time time simulation on the communication data in the RINEX format.

[0019] More preferably, the performing real-time simulation on the communication data in the RINEX format or the communication data in the RTCM format further includes:

[0020] Obtaining the MSM message header in the communication data in the RTCM format;

[0021] Based on the GNSS epoch time and the differential time in the Beidou GPS positioning information, the MSM message header is decoded, and the GNSS epoch time and the broadcast ephemeris are input into the development board to perform real-time time simulation on the communication data in the RTCM format.

[0022] More preferably, the observation value file and navigation ephemeris file in RTCM format or RINEX format sent by the receiving terminal device include:

[0023] The receiving terminal device uses a GNSS data acquisition device to receive GNSS raw data sent by satellites or uses the Internet to obtain the GNSS raw data and navigation ephemeris files of the mobile station and the base station, wherein the GNSS raw data includes observation value files in the RTCM format or the RINEX format.

[0024] More preferably, the standard observation data includes pseudorange observation values, carrier phase observation values, Doppler observation values ​​and signal strength observation values.

[0025] In a second aspect of the present application, a simulated real-time playback device for a GNSS post-observation file is provided, the simulated real-time playback device comprising a data acquisition module, a data encoding module, a simulated real-time observation data differential time module and a simulated time simulation module, wherein:

[0026] The data acquisition module is used to receive an observation value file and a navigation ephemeris file in RTCM format or RINEX format sent by a terminal device, wherein the observation value file includes multiple groups of standard observation data in a mobile station and a reference station, the standard observation data represents observation data of the same epoch in the mobile station and the reference station, and the navigation ephemeris file includes broadcast ephemeris;

[0027] The data encoding module is used to encode the standard observation data in the RINEX format to obtain the encoded observation data in the RINEX format, and send the encoded observation data in the RINEX format or the standard observation data in the RTCM format to the USART serial port of the development board epoch by epoch;

[0028] The simulated real-time observation data differential time module is used to perform epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format, so as to obtain the communication data in the RINEX format or the communication data in the RTCM format;

[0029] The time-simulation module is used to perform a real-time simulation on the communication data in the RINEX format or the communication data in the RTCM format, so as to realize the simulated real-time playback of the observation file.

[0030] In a third aspect of the present application, an electronic device is provided, comprising a processor, a memory, a user interface and a network interface, wherein the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory.

[0031] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program is executed by a processor to implement the steps of a method for simulating real-time playback of GNSS post-observation files.

[0032] The method and device for simulating real-time playback of GNSS post-observation files provided by the present invention have the following beneficial effects compared with the prior art:

[0033] (1) The development board receives the encoded RINEX format observation value file / RTCM format observation value file and navigation ephemeris file to ensure that the standard observation data in RINEX format meets the byte-by-byte reception requirements of the development board. At the same time, the standard observation data in RINEX format and the standard observation data in RTCM format are identified by epoch and the differential time operation of the simulated real-time observation data is performed to make the time between the observation data and the received real-time data stream not aligned. The communication data in RINEX format / RTCM format is simulated by the simulated real-time observation time to provide the necessary experimental verification means for real-time solution and improve the accuracy of the data received by the development board.

[0034] (2) The real-time solution environment of the terminal device is simulated by simulating the real-time observation time. The satellite signal characteristics and timestamps built into the standard observation data in RINEX format / RTCM format are used to realize epoch-by-epoch identification. The UTC time / GPS time built into the standard observation data in RINEX format / RTCM format is used as the internal time to realize the simulated real-time observation effect, so that development and troubleshooting can be carried out simultaneously, avoiding a large number of repeated and tedious troubleshooting, shortening the development cycle, and providing the necessary conditions for environmental simulation during the development process of the development board. The simulated real-time observation time simulation can simultaneously obtain the solution results and log files of the development board, so as to quickly locate the bugs in the development process and reduce the disadvantages of frequent burning operations and serial port printing debugging. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A schematic diagram of the steps of a method for simulating real-time playback of GNSS post-observation files provided by the present invention;

[0037] Figure 2 A schematic diagram of the structure of the simulation real-time playback device provided by the present invention;

[0038] Figure 3 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0039] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] Before introducing the embodiments of the present invention, some terms and their abbreviations involved in the embodiments of the present invention are first defined and explained.

[0041] GNSS raw data comes from Beidou / GNSS post-observation files, which mainly include RTCM and RINEX data formats. RTCM data format is a universal GNSS data encoding format proposed by the Radio Technical Commission for Maritime Services to respond to GNSS real-time data services. It is used for network communication and is broadcast in an array of binary sequences and is not readable. RINEX (Receiver INdependent EXchange format) is a standard data format commonly used in satellite navigation and positioning applications. This format stores data in the form of text files. The data recording format is independent of the manufacturer and specific model of the receiver and has strong readability.

[0042] The MSM message header is a message format in the GNSS system for transmitting multi-frequency and multi-signal multi-crystalline coverage (Galileo) observation data. MSM stands for Multi-Signal Message. This message format is designed to provide high-frequency, high-sensitivity GNSS observation data, including multi-frequency observations from multiple satellite systems. This message format is used in real-time GNSS applications to provide more accurate and faster position calculation and navigation solutions.

[0043] RTK (Real Time Kinematic) real-time dynamic measurement technology is a real-time differential GPS (RTDGPS) technology based on carrier phase observation. It is a breakthrough in the development of measurement technology. It consists of three parts: base station receiver, data link, and mobile station receiver. A receiver is placed on the base station as a reference station to continuously observe the satellite, and its observation data and station information are sent to the mobile station in real time through radio transmission equipment. While receiving GPS satellite signals, the mobile station GPS receiver receives the data transmitted by the base station through wireless receiving equipment, and then calculates the three-dimensional coordinates and accuracy of the mobile station in real time based on the principle of relative positioning (i.e., the coordinate difference △X, △Y, △H between the base station and the mobile station, plus the WGS-84 coordinates of each point obtained by the base coordinates, and the plane coordinates X, Y and altitude H of each point of the mobile station are obtained through coordinate conversion parameters).

[0044] The present application embodiment discloses a method for simulating real-time playback of GNSS post-observation files, such as Figure 1 As shown, the method comprises steps S1 to S4.

[0045] Step S1, receiving an observation value file and a navigation ephemeris file in RTCM format or RINEX format sent by a terminal device, wherein the observation value file includes multiple sets of standard observation data in a mobile station and a base station, the standard observation data represents the observation data of the same epoch in the mobile station and the base station, and the navigation ephemeris file includes a broadcast ephemeris.

[0046] In this step, the receiving terminal device uses a GNSS data acquisition device to receive GNSS raw data sent by satellites or uses the Internet to obtain GNSS raw data and navigation ephemeris files of mobile stations and base stations, where GNSS raw data includes observation value files in RTCM format or RINEX format. Standard observation data includes pseudorange observation values, carrier phase observation values, Doppler observation values, and signal strength observation values.

[0047] Among them, GNSS data acquisition equipment includes GNSS receivers (used to receive satellite signals and calculate location information, and communicate with different satellite systems by connecting external antennas, such as GPS, GLONASS, Galileo, Beidou, etc. to obtain location and time information), GNSS measurement equipment (equipment used for ground, air or underwater measurement, and usually equipped with GNSS receivers for three-dimensional geographic measurement and positioning) and GNSS data recorders (used to record GNSS information and location data at specific time intervals or when events are triggered, for subsequent data analysis and processing). These devices usually support satellite systems including GPS, GLONASS, Galileo and Beidou, which can meet the positioning and navigation needs of different fields.

[0048] In this embodiment, the navigation ephemeris is used to store data such as the satellite's orbital parameter information, clock bias, and signal propagation delay. It contains orbital information of the satellite in a specific time period, which is used to predict the satellite's position in space, and to calculate the propagation time and error correction of satellite signals. Specifically, it includes: satellite position (including the three-dimensional spatial coordinates of the satellite at a specific time, usually described by the geocentric inertial coordinate system or the geocentric earth-fixed coordinate system), satellite speed (the velocity vector information of the satellite at a specific time, which can be used to predict the change of the satellite's position), clock bias (the deviation between the satellite clock and the standard world clock, because the satellite's atomic clock may have a slight deviation from the world clock) and signal propagation delay (the time delay for the signal to reach the receiving device from the satellite, which includes atmospheric delay and other error terms).

[0049] In this embodiment, the Beidou / GNSS post-observation file in RINEX format mainly involves observation value files and navigation ephemeris files. Among them, the O file includes the observation data of the two stations for RTK solution. The data transmission is to package the observation data (P+L+D+S) of the same epoch of the two stations together, and then send them to the serial port epoch by epoch; the N file is a broadcast ephemeris file. In order to save memory expenses, the broadcast ephemeris is usually reordered according to time and transmitted in segments at intervals of two or more hours. The specific method is to first send a section of ephemeris data, and then pass the observation value file data epoch by epoch, and send the next section of ephemeris data again after a period of time. The time interval between the two sections of ephemeris data will try to meet the nearest ephemeris time in the real-time solution state. Among them, in the observation data (P+L+D+S), P represents pseudorange observation value, L represents carrier phase observation value, D represents Doppler observation value, and S represents signal strength observation value.

[0050] Step S2, encoding the standard observation data in the RINEX format to obtain the encoded observation data in the RINEX format, and sending the encoded observation data in the RINEX format or the standard observation data in the RTCM format to the USART serial port of the development board epoch by epoch.

[0051] In this step, the above operation can be regarded as encoding operation for standard observation data in RINEX format, because the sending and receiving of the USART serial port of the development board is performed byte by byte. For observation data in RTCM format, there is no need to consider the mandatory type conversion of characters, and it can be sent directly. The double and int type data in the observation data in RINEX format are 8 bytes and 4 bytes respectively, so it is necessary to split them into single bytes and then form a continuous string, which is passed from the terminal device to the development board through the USART serial port, and the data is decoded and stored to prepare for the next RTK. Without losing data accuracy, the double and int type data are converted in the following way to support serial communication.

[0052] Double and int data are converted in the following way to support serial communication:

[0053] char*p; double*pp; double*ppp; char*q; int*qq; int*qqq;

[0054] / / / Data conversion and sending

[0055] p=(char*)(&pp); q=(char*)(&qq);

[0056] for(i=0;i<8;i++){send(*(p+i));}

[0057] for(i=0;i<4;i++){send(*(q+i));}

[0058] / / / Data reception and decoding

[0059] ppp=(double*)(p); qqq=(int*)(q).

[0060] Step S3, performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in RINEX format or the standard observation data in RTCM format to obtain communication data in RINEX format or communication data in RTCM format.

[0061] The epoch-by-epoch identification is performed on the encoded observation data in the RINEX format, specifically including steps S31 to S33.

[0062] Step S31, retrieve satellite signal features from a plurality of standard observation data.

[0063] Step S32, identifying the satellite information corresponding to each epoch based on the satellite signal characteristics, so as to complete the epoch-by-epoch identification of the encoded observation data.

[0064] In this step, during the GNSS data reception process, the satellite signal contains some specific features and parameters, such as: pseudo-random noise code (each satellite will send a specific pseudo-random noise code related to its identity, and the receiving device can use these pseudo-random noise codes to identify and track the signals of different satellites), frequency (the signals transmitted by different satellites are usually transmitted at different frequencies, and the receiving device can identify different satellites according to the frequency of the signal), signal-to-noise ratio and carrier phase (satellite signals contain specific carrier phase information, which can be used to determine the position and speed of the satellite). And the satellite position and time information are determined through these data to calculate the position of the receiving device.

[0065] Step S33, using UTC time as the first internal time of the navigation ephemeris file, and using the start time of each epoch in the navigation ephemeris file as the time standard, to complete the simulated real-time observation data differential time operation on the encoded observation data.

[0066] In this step, by reading each epoch data in the navigation ephemeris file, including information such as the satellite's position, speed, clock offset, and the start timestamp of each epoch, and comparing it with the UTC time, the start time of the first epoch is determined and used as the time standard. The start time is used as a reference point, and the start time of each epoch is used as the differential time standard for simulated real-time observation data. For observation data that needs to be misaligned with the navigation ephemeris file (such as signal data observed by a GNSS receiver), the time offset of the observation data relative to the navigation ephemeris file is calculated by comparing the timestamp of the observation data with the start time of the epoch. Then, the time of the observation data is adjusted by the time offset so that it is not aligned with the time of the navigation ephemeris file. Using the misaligned observation data, combined with the satellite position and speed information in the navigation ephemeris file, position solution and navigation calculation can be performed to obtain position information in a simulated real-time observation environment.

[0067] The epoch-by-epoch identification is performed on the standard observation data in the RTCM format, specifically including steps S34 to S35.

[0068] Step S34, based on the timestamp of each epoch in the standard observation data in the RTCM format, determine the satellite information corresponding to the timestamp to complete the epoch-by-epoch identification of the standard observation data in the RTCM format.

[0069] In this step, the timestamp is usually used to mark the time when the satellite signal is sent and the time when the receiving device receives the signal, which can be used to obtain the propagation time of the signal. At the same time, the three-dimensional spatial position and velocity information of the satellite at a specific time contained in the navigation ephemeris file can be used to predict the position of the satellite when the receiver receives the signal. The receiving device measures the received satellite signal, including pseudorange and carrier phase information, which can be used to calculate the signal propagation time and Doppler effect, thereby further accurately locating the position and velocity of the satellite.

[0070] Step S35, using GPS time as the second internal time of the navigation ephemeris file, and using the start time of each epoch in the navigation ephemeris file as the time standard, to complete the differential time operation of the simulated real-time observation data of the standard observation data in the RTCM format. The differential time operation process of the simulated real-time observation data of the standard observation data in the RTCM format is consistent with the differential time operation process of the simulated real-time observation data of the encoded observation data in the RINEX format, so it will not be repeated.

[0071] In this embodiment, the serial communication scheme between the terminal device and the development board is to establish a data transmission channel between the terminal device and the development board, so as to facilitate sending the Beidou / GNSS post-observation file to the development board. The whole process includes data sending and data receiving, which are completed by the terminal device and the development board respectively.

[0072] Data transmission is completed by the serial port tool, which has the characteristics of epoch-by-epoch transmission of post-observation files and controllable transmission rate. The epoch-by-epoch transmission of post-observation files involves epoch-by-epoch identification of the two data formats of RTCM and RINEX and differential time operation of simulated real-time observation data, which are respectively given by the GNSS data coding calibration and simulated real-time observation time simulation parts.

[0073] The working order of the serial port tool is to read the original observation value information from the local file, convert it into a continuous string after GNSS data encoding verification, and then pass it from the PC to the development board through the serial port. The CSerialPort project is a lightweight open source cross-platform serial port class library based on C++, which is used to implement serial port reading and writing across platforms and multiple operating systems. The main functions involved in its specific implementation process are as follows:

[0074] Initialize the serial port function: bool CSerialPort::InitPort(UINT portNo,UINT baud,charparity,UINT databits,UINT stopsbits,DWORD dwCommEvents)

[0075] portNo: serial port number; baud: baud rate; parity: parity bit; databits: word length data format;

[0076] stopbits: stop bits; dwCommEvents: event settings.

[0077] Serial port sends data: bool CSerialPort::WriteData(unsigned char*pData,intlength)

[0078] pData: the string to be sent; length: the length in bytes.

[0079] Serial port receives data: bool CSerialPort::ReceiveData(unsigned char*buff,intmaxlen)

[0080] Buff: received data; Maxlen: maximum received length.

[0081] Data reception is completed by the development board, and its implementation process is relatively complicated, mainly including three parts: development board serial port initialization, data reception and data decoding. Among them, serial port initialization and data decoding are not described in detail in this patent. Next, the specific process of implementing data reception will be explained.

[0082] The development board uses the serial port to obtain the original observation data from the terminal device, and then performs decoding and solving operations to achieve data playback. The development board transplants the FreeRTOS real-time operating system, and uses its time slice rotation characteristics to establish three tasks: data reception, data decoding, and data solving. In order to relieve the pressure of decoding and solving, and at the same time ensure the normal flow of data and the stable operation of the entire system, a queue is opened to store the received data.

[0083] Since the length of the data received each time is uncertain, the implementation of data reception needs to be realized with the help of serial port idle interrupt and binary semaphore. The serial port idle interrupt is an interrupt triggered when the serial port is idle. It does not trigger the interrupt all the time when the serial port is idle, but triggers the interrupt after each continuous reception is completed. If a string is received, an interrupt is triggered after the entire string is received. This method does not need to know the specific length of each string, so it can receive serial port data of indefinite length. The semaphore in FreeRTOS is a way of communication between tasks. The binary semaphore has only two states, which can be represented as 0 or 1. Semaphores are used for synchronization between tasks. FreeRTOS is a multi-tasking system. Different tasks may require a certain synchronization relationship. For example, after the serial port interrupt receives the data, the data analysis and processing task can get the data for analysis. This is a kind of synchronization.

[0084] The basic operations of semaphores are acquiring semaphores and releasing semaphores. When the data analysis and processing task needs to process serial port data, it can first try to acquire the semaphore. If it cannot be acquired, that is, the semaphore is 0, it will first enter the blocking wait. If the waiting timeout, it can jump out first, and then continue to try to acquire the semaphore. After the serial port idle interrupt receives a string of data, it can execute the release semaphore operation. At this time, the data analysis and processing task can obtain the semaphore and then process the serial port data, realizing the synchronization of serial port data reception and data processing.

[0085] This method uses the serial port idle interrupt to trigger data reception instead of triggering interrupts all the time. This method can avoid unnecessary interrupt processing and improve the efficiency of the system. The synchronization between tasks is achieved through binary semaphores (semaphores are a way of communication between tasks, which can be used to control the execution order of tasks and access shared resources) to avoid competition conditions and data inconsistency problems between tasks. At the same time, it is not necessary to know the specific length of the data received each time, and serial port data of variable length can be received. This makes the method more flexible and adaptable, and can be applied to different types of data transmission protocols and serial port communication protocols. The blocking waiting and timeout mechanism are used to achieve task synchronization. When the data analysis and processing task needs to process serial port data, it will try to obtain the semaphore. If the semaphore is 0 (indicating that the resource is unavailable), the task will enter a blocked state and wait. If the waiting timeout, the task will jump out of the blocked state and continue to try to obtain the semaphore. This method can avoid idling waiting of tasks and unnecessary resource consumption.

[0086] Step S4, performing a simulated real-time time simulation on the communication data in the RINEX format or the communication data in the RTCM format to achieve simulated real-time playback of the observation file.

[0087] In this step, the Beidou / GNSS post-observation file is replayed in a simulated real-time observation time. Normal post-solution requires time alignment of the two stations, but for real-time solution, due to network delays and real-time data stream generation, the observation data generated by the low-cost RTK terminal itself through baseband processing is always time-misaligned with the received real-time data stream. For high-sampling rate data, a certain range of data time delays can be received. In order to completely restore the real-time test state of the low-cost RTK terminal, the original observation data is processed according to the differential time in the GNGGA information generated by the real-time test to make it completely consistent with the real-time test state.

[0088] The communication data in the RINEX format is subjected to a real-time simulation, specifically comprising step S41.

[0089] Step S41, based on the differential time in the Beidou GPS positioning information (GNGGA information), the broadcast ephemeris and the standard observation data in the mobile station and the reference station are reordered and divided into blocks, so that the character string recombined by the broadcast ephemeris and the standard observation data is input into the development board to simulate the real-time time of the communication data in the RINEX format.

[0090] In this step, in order to obtain the observation time information of the two stations (base station and mobile station), it is necessary to decode the third field GNSS epoch time in the MSM message header in RTCM. Based on the GNSS epoch time of the mobile station, the RTCM of the base station is decoded according to the differential time provided in GNGGA, the corresponding time is matched, and sent to the development board through two serial ports at the same time.

[0091] The real-time simulation is performed on the communication data in the RTCM format, specifically including steps S42 to S43.

[0092] Step S42, obtaining the MSM message header in the communication data in RTCM format.

[0093] Step S43, based on the GNSS epoch time and the differential time in the Beidou GPS positioning information, the MSM message header is decoded, and the GNSS epoch time and the broadcast ephemeris are input into the development board to simulate the real-time time of the communication data in the RTCM format.

[0094] In this step, a script is used to reorder and block the broadcast ephemeris, rover observations, and base station observations according to the differential time provided by GNGGA to form a complete string, which is then passed to the development board through a serial port.

[0095] This method can improve the R&D means of low-cost terminal RTK and ensure the accuracy and authenticity of test verification. This method can solve the quantitative test problem of RTK simulation real-time environment, realize the free selection of satellite systems and real-time display of positioning results, and provide a simple and reliable test environment for the establishment of error models and test evaluation in the process of low-cost terminal RTK R&D. At the same time, it can quickly locate bugs for large-volume codes, avoid a large number of repeated and tedious debugging, and carry out development and debugging at the same time, shortening the development cycle.

[0096] In an example, the data collected by the RTK terminal is transmitted to the STM32 H743 development board through the serial port tool, and decoded and solved in the corresponding tasks. In order to avoid data blocking, three serial ports need to be initialized, which correspond to the printing function, base station data transmission and rover data transmission respectively.

[0097] The specific steps of serial port initialization are as follows;

[0098] (1) Initialize serial port parameters (baud rate / stop bit, etc.) and enable the serial port;

[0099] (2) Enable the serial port and GPIO port clocks;

[0100] (3) GPIO port initialization settings (speed, pull-up and pull-down, etc.) and multiplexing mapping configuration;

[0101] (4) Enable serial port related interrupts and configure the serial port interrupt priority.

[0102] Create a decoding task to decode the data sent from the serial port tool to the development board, and then create an RTK task to solve the decoded data. The development board receives data from two serial ports. After testing, the data volume of one epoch of RTCM is less than 2000 bytes. The temp_rover variable is used in Rinex data transmission. One serial port needs to send the observation files of base and rove and one hour of ephemeris to the development board in the first epoch. The data volume is large, about 20,000 bytes; perform hardware configuration of the development board (HALL library initialization, clock initialization, delay initialization, serial port initialization and LED initialization); the development board runs and completes three tasks (serial communication task, decoding task and RTK solution), and the task priorities are the same.

[0103] It provides necessary conditions for environmental simulation in the process of terminal RTK development. Through the development board simulator, STM32 H743 development board, embedded related software development tools and serial port tools, it provides necessary experimental verification means for the real-time solution of the simulated terminal RTK when collecting data. The simulated real-time playback method can obtain the solution results and log files of the terminal RTK at the same time, so as to quickly locate the BUG in the development process. It can develop and debug at the same time, reducing the disadvantages of frequent burning operations and serial port printing debugging, and improving the efficiency of terminal RTK development.

[0104] Based on the above method, the present application embodiment discloses a simulated real-time playback device for GNSS post-observation files, referring to Figure 2 The simulated real-time playback device 1 includes a data acquisition module 11, a data encoding module 12, a simulated real-time observation data differential time module 13 and a simulated time simulation module 14, wherein:

[0105] The data acquisition module 11 is used to receive the observation value file and the navigation ephemeris file in the RTCM format or the RINEX format sent by the terminal device, wherein the observation value file includes multiple sets of standard observation data in the mobile station and the base station, the standard observation data represents the observation data of the same epoch in the mobile station and the base station, and the navigation ephemeris file includes the broadcast ephemeris;

[0106] The data encoding module 12 is used to encode the standard observation data in the RINEX format to obtain the encoded observation data in the RINEX format, and send the encoded observation data in the RINEX format or the standard observation data in the RTCM format to the USART serial port of the development board epoch by epoch;

[0107] The simulated real-time observation data differential time module 13 is used to perform epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in RINEX format or the standard observation data in RTCM format, so as to obtain communication data in RINEX format or communication data in RTCM format;

[0108] The time simulation module 14 is used to perform a real-time simulation on the communication data in the RINEX format or the communication data in the RTCM format, so as to realize the simulated real-time playback of the observation file.

[0109] In one example, the data acquisition module 11 is used to retrieve satellite signal features from multiple standard observation data; the simulated real-time observation data differential time module 13 is used to identify the satellite information corresponding to each epoch based on the satellite signal features to complete the epoch-by-epoch identification of the encoded observation data, and use the UTC time as the first internal time of the navigation ephemeris file, and use the start time of each epoch in the navigation ephemeris file as the time standard to complete the simulated real-time observation data differential time operation on the encoded observation data.

[0110] In one example, the simulated real-time observation data differential time module 13 is used to determine the satellite information corresponding to the timestamp based on the timestamp of each epoch in the standard observation data in the RTCM format, so as to complete the epoch-by-epoch identification of the standard observation data in the RTCM format, and use the GPS time as the second internal time of the navigation ephemeris file, and use the start time of each epoch in the navigation ephemeris file as the time standard to complete the simulated real-time observation data differential time operation on the standard observation data in the RTCM format.

[0111] In one example, the time simulation module 14 is used to reorder and block the broadcast ephemeris and the standard observation data in the mobile station and the base station based on the differential time in the Beidou GPS positioning information, so that the character string recombined from the broadcast ephemeris and the standard observation data is input into the development board to perform real-time time simulation on the communication data in the RINEX format.

[0112] In one example, the data acquisition module 11 is used to obtain the MSM message header in the communication data in the RTCM format; the time simulation module 14 is used to decode the MSM message header based on the GNSS epoch time and the differential time in the Beidou GPS positioning information, and input the GNSS epoch time and the broadcast ephemeris into the development board to perform real-time time simulation on the communication data in the RTCM format.

[0113] In one example, the data acquisition module 11 is used to receive GNSS raw data sent by satellites received by a terminal device using a GNSS data acquisition device or to obtain GNSS raw data and navigation ephemeris files of a mobile station and a base station using the Internet, wherein the GNSS raw data includes observation value files in RTCM format or RINEX format.

[0114] See also Figure 3 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 As shown, the electronic device 2 may include: at least one processor 21 , at least one network interface 24 , a user interface 23 , a memory 25 , and at least one communication bus 22 .

[0115] The communication bus 22 is used to realize the connection and communication between these components.

[0116] The user interface 23 may include a display screen (Display) and a camera (Camera), and the optional user interface 23 may also include a standard wired interface and a wireless interface.

[0117] The network interface 24 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0118] Among them, the processor 21 may include one or more processing cores. The processor 21 uses various interfaces and lines to connect various parts of the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 25, and calling data stored in the memory 25. Optionally, the processor 21 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field ~ Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 21 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 21, and it can be implemented separately through a chip.

[0119] Among them, the memory 25 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 25 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The memory 25 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 25 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 25 may also be optionally at least one storage device located away from the aforementioned processor 21. As Figure 3 As shown, the memory 25 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for a method for simulating real-time playback of GNSS post-observation files.

[0120] exist Figure 3 In the electronic device 2 shown, the user interface 23 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 21 can be used to call the application of the simulated real-time playback method of the GNSS post-observation file stored in the memory 25. When executed by one or more processors, the electronic device executes one or more methods in the above-mentioned embodiments.

[0121] A computer-readable storage medium stores instructions, which, when executed by one or more processors, enable the computer to execute one or more methods in the above-mentioned embodiments.

[0122] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0124] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0125] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0126] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0128] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A simulated real-time playback method for GNSS post-observation files, applied to the development board, It is characterized in that The method comprises: Receiving an observation value file and a navigation ephemeris file in RTCM format or RINEX format sent by a terminal device, wherein the observation value file includes multiple sets of standard observation data in a mobile station and a reference station, the standard observation data represents observation data of the same epoch in the mobile station and the reference station, and the navigation ephemeris file includes broadcast ephemeris; Performing an encoding operation on the standard observation data in the RINEX format to obtain the encoded observation data in the RINEX format, and sending the encoded observation data in the RINEX format or the standard observation data in the RTCM format to the USART serial port of the development board epoch by epoch; Performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format to obtain communication data in the RINEX format or the communication data in the RTCM format; The step of performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format comprises: Retrieving satellite signal features from a plurality of the standard observation data; Identifying satellite information corresponding to each epoch based on the satellite signal characteristics to complete epoch-by-epoch identification of the encoded observation data; Using UTC time as the first internal time of the navigation ephemeris file, and using the start time of each epoch in the navigation ephemeris file as the time standard, so as to complete the simulated real-time observation data differential time operation on the encoded observation data; The step of performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format further includes: Based on the timestamp of each epoch in the standard observation data in the RTCM format, determining the satellite information corresponding to the timestamp to complete the epoch-by-epoch identification of the standard observation data in the RTCM format; Using GPS time as the second internal time of the navigation ephemeris file, and using the start time of each epoch in the navigation ephemeris file as the time standard, so as to complete the differential time operation of the simulated real-time observation data of the standard observation data in the RTCM format; The communication data in the RINEX format or the communication data in the RTCM format is simulated in real time to achieve simulated real-time playback of observation files.

2. The method according to claim 1, It is characterized in that The performing real-time simulation on the communication data in the RINEX format or the communication data in the RTCM format comprises: The broadcast ephemeris and the standard observation data in the mobile station and the base station are reordered and divided into blocks based on the differential time in the Beidou GPS positioning information, so that the character string recombined by the broadcast ephemeris and the standard observation data is input into the development board to perform real-time time simulation on the communication data in the RINEX format.

3. The method according to claim 2, It is characterized in that The performing of real-time simulation on the communication data in the RINEX format or the communication data in the RTCM format also includes: Obtaining the MSM message header in the communication data in the RTCM format; Based on the GNSS epoch time and the differential time in the Beidou GPS positioning information, the MSM message header is decoded, and the GNSS epoch time and the broadcast ephemeris are input into the development board to perform real-time time simulation on the communication data in the RTCM format.

4. The method according to claim 1, It is characterized in that The receiving terminal device sends an observation value file and a navigation ephemeris file in RTCM format or RINEX format, including: The receiving terminal device uses a GNSS data acquisition device to receive GNSS raw data sent by satellites or uses the Internet to obtain the GNSS raw data and navigation ephemeris files of the mobile station and the base station, wherein the GNSS raw data includes observation value files in the RTCM format or the RINEX format.

5. The method according to claim 1, It is characterized in that The standard observation data includes pseudorange observation values, carrier phase observation values, Doppler observation values ​​and signal strength observation values.

6. A simulated real-time playback device for GNSS post-observation files, applied to the development board, It is characterized in that The simulated real-time playback device (1) comprises a data acquisition module (11), a data encoding module (12), a simulated real-time observation data differential time module (13) and a simulated time simulation module, wherein: The data acquisition module (11) is used to receive an observation value file and a navigation ephemeris file in an RTCM format or a RINEX format sent by a terminal device, wherein the observation value file includes multiple groups of standard observation data in a mobile station and a reference station, the standard observation data represents observation data of the same epoch in the mobile station and the reference station, and the navigation ephemeris file includes a broadcast ephemeris; The data encoding module (12) is used to perform an encoding operation on the standard observation data in the RINEX format to obtain the encoded observation data in the RINEX format, and send the encoded observation data in the RINEX format or the standard observation data in the RTCM format to the USART serial port of the development board epoch by epoch; The simulated real-time observation data differential time module (13) is used to perform epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format, so as to obtain the communication data in the RINEX format or the communication data in the RTCM format; The step of performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format comprises: Retrieving satellite signal features from a plurality of the standard observation data; Identifying satellite information corresponding to each epoch based on the satellite signal characteristics to complete epoch-by-epoch identification of the encoded observation data; Using UTC time as the first internal time of the navigation ephemeris file, and using the start time of each epoch in the navigation ephemeris file as the time standard, so as to complete the simulated real-time observation data differential time operation on the encoded observation data; The step of performing epoch-by-epoch identification and simulated real-time observation data differential time operation on the encoded observation data in the RINEX format or the standard observation data in the RTCM format further includes: Based on the timestamp of each epoch in the standard observation data in the RTCM format, determining the satellite information corresponding to the timestamp to complete the epoch-by-epoch identification of the standard observation data in the RTCM format; Using GPS time as the second internal time of the navigation ephemeris file, and using the start time of each epoch in the navigation ephemeris file as the time standard, so as to complete the differential time operation of the simulated real-time observation data of the standard observation data in the RTCM format; The time simulation module (14) is used to perform a real-time simulation on the communication data in the RINEX format or the communication data in the RTCM format, so as to realize the simulated real-time playback of the observation file.

7. An electronic device, It is characterized in that The electronic device (2) comprises a processor (21), a memory (25), a user interface (23) and a network interface (24), wherein the memory (25) is used to store instructions, the user interface (23) and the network interface (24) are used to communicate with other devices, and the processor (21) is used to execute the instructions stored in the memory (25) so that the electronic device (2) executes the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.