Search

CN-122001823-A - GNSS signal generation method, GNSS spoofing device and storage medium

CN122001823ACN 122001823 ACN122001823 ACN 122001823ACN-122001823-A

Abstract

The application relates to the technical field of signal generation, and discloses a GNSS signal generation method, GNSS deception equipment and a computer readable storage medium, wherein the method is applied to the GNSS deception equipment, the GNSS deception device comprises a processor, a signal processing unit and a plurality of memory spaces, wherein each memory space is provided with corresponding marking information, and the method comprises the following steps: the method comprises the steps of periodically generating an interrupt signal through a signal processing unit and sending the interrupt signal to a processor, receiving the interrupt signal through the processor and generating a plurality of data packets, storing the data packets into an empty memory space, marking the memory space as full, reading the data packets one by one from the full memory space through the signal processing unit and generating GNSS analog signals, and marking the memory space as empty when all the data packets are read. By the method, the short-time hard real-time requirement of the system is converted into the long-time soft real-time requirement, accumulation of signal delay is avoided, and transmission of the data packet is more efficient and reliable.

Inventors

  • LUO ZHIYONG

Assignees

  • 深圳市塞防科技有限公司

Dates

Publication Date
20260508
Application Date
20260116

Claims (10)

  1. 1. A GNSS signal generating method, applied to a GNSS spoofing device, where the GNSS spoofing device includes a processor, a signal processing unit, and a plurality of memory spaces, and each of the memory spaces is provided with corresponding tag information, where the tag information is used to characterize a storage state of the memory space, and the method includes: Periodically generating interrupt signals through the signal processing unit and sending the interrupt signals to the processor, wherein a plurality of interrupt signals correspond to a plurality of interrupt periods; Receiving the current interrupt signal by the processor, generating a plurality of data packets in the current interrupt period, storing the data packets in the memory space with empty marking information, and setting the marking information corresponding to the memory space to be full; And reading the data packets generated by the processor in the last interrupt period one by one from the memory space with the full marking information according to a preset time interval by the signal processing unit in the current interrupt period, analyzing and processing the data packets into GNSS analog signals according to the data packets, and setting the marking information corresponding to the memory space to be empty when all the data packets in the memory space are read.
  2. 2. The GNSS signal generation method of claim 1, wherein the generating a plurality of data packets during the current interrupt period specifically includes: Acquiring the duration of the interrupt period from the interrupt signal, and generating message data according to the duration, wherein the message data is used for the signal processing unit to generate GNSS analog signals of the duration; and carrying out interpolation processing on the message data to generate a plurality of data packets.
  3. 3. The GNSS signal generation method according to claim 2, wherein the generating a plurality of data packets in the current interrupt period, storing the plurality of data packets in the memory space with empty tag information, specifically includes: generating a serial number corresponding to each data packet according to the position of each data packet in the message data, and storing the serial number into the data packet; And sequentially storing the data packets into the memory space according to the sequence of the sequence numbers.
  4. 4. The method of generating GNSS signals of claim 3 wherein prior to said processing into GNSS analog signals according to said data packet parsing, said method further comprises: acquiring a sequence number in a current read data packet to obtain a first sequence number; Acquiring a sequence number in a data packet corresponding to the current GNSS analog signal to obtain a second sequence number; If the first serial number and the second serial number are continuous serial numbers, executing the step of analyzing and processing the data packet into GNSS analog signals; and if the first sequence number and the second sequence number are discontinuous sequence numbers, discarding the data packet which is read currently.
  5. 5. The GNSS signal generation method of claim 4, wherein the method further comprises: counting, by the signal processing unit, the number of the data packets discarded by the signal processing unit; If the number is greater than the preset number, generating data loss information and sending the data loss information to the processor; And receiving the data loss information through the processor, and executing preset error processing operation according to the data loss information.
  6. 6. The GNSS signal generation method of claim 2, wherein the method further comprises: acquiring, by the processor, a local time and a start time in response to a device turn-on instruction, and transmitting the local time and the start time to the signal processing unit; Setting, by the signal processing unit, an internal clock of the signal processing unit as the local time, and setting a start time of the GNSS analog signal generated by the signal processing unit as the start time.
  7. 7. The GNSS signal generation method of claim 1, wherein the interrupt signal is provided with a corresponding interrupt index; After the storing the plurality of data packets in the memory space with empty tag information, the method further includes: storing an interrupt index corresponding to the interrupt signal into the memory space; The step of reading the data packets generated by the processor in the last interrupt period one by one from the memory space with the full marking information specifically includes: And reading the data packets generated by the processor in the last interrupt period one by one from the memory space with the mark information being full according to the interrupt indexes stored in the memory spaces.
  8. 8. The GNSS signal generation method of claim 7, wherein the method further comprises: Obtaining an interrupt index corresponding to an interrupt signal generated in a current period through the signal processing unit to obtain a target interrupt index; and if the marking information corresponding to the memory space is full and the difference between the interruption index in the memory space and the target interruption index is larger than a preset difference, updating the marking information corresponding to the memory space to be empty.
  9. 9. A GNSS spoofing device comprising a memory, a processor, a signal processing unit and a computer program stored on the memory, the processor and the signal processing unit executing the computer program to implement the GNSS signal generation method of any of claims 1 to 8.
  10. 10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor and a signal processing unit, implements the GNSS signal generation method of any of claims 1 to 8.

Description

GNSS signal generation method, GNSS spoofing device and storage medium Technical Field The embodiment of the application relates to the technical field of signal generation, in particular to a GNSS signal generation method, GNSS deception equipment and a computer readable storage medium. Background GNSS spoofing devices refer to devices capable of transmitting radio signals similar to real GNSS (Global Navigation SATELLITE SYSTEM ) signals but carrying false information that cause a target receiver to calculate erroneous time, position or velocity information. The device can generate GNSS baseband signals, generate GNSS analog signals after modulation, and finally transmit the GNSS analog signals by the transmitting module, thereby influencing the positioning, navigation and time service functions of the target receiver. At present, GNSS spoofing devices have the capability of generating and transmitting data packets to a signal processing unit, but there is no effective method for transmitting data packets efficiently, reliably, with low latency and at low cost. Disclosure of Invention In view of the above, embodiments of the present application provide a GNSS signal generating method, a GNSS spoofing device, and a computer readable storage medium, which are used to solve the problem in the prior art how to efficiently, reliably, with low latency, and with low cost, transmit a baseband signal. According to one aspect of the embodiment of the application, a GNSS signal generation method is provided, and is applied to GNSS deception equipment, the GNSS deception equipment comprises a processor, a signal processing unit and a plurality of memory spaces, each memory space is provided with corresponding marking information, the marking information is used for representing the storage state of the memory space, the method comprises the steps of periodically generating interrupt signals through the signal processing unit and sending the interrupt signals to the processor, wherein the interrupt signals correspond to a plurality of interrupt periods, receiving the current interrupt signals through the processor, generating a plurality of data packets in the current interrupt period, storing the data packets in the memory space with the marking information being empty, setting the marking information corresponding to the memory space to be full, reading the data packets generated by the processor in the last interrupt period one by one from the memory space with the marking information being full according to preset time intervals through the signal processing unit, and analyzing all the data packets in the memory space to be full according to the data packets into GNSS analog signals, and setting the marking information corresponding to the memory space to be empty when all the data packets in the memory space are read. In an optional mode, generating a plurality of data packets in the current interrupt period specifically comprises the steps of acquiring the duration of the interrupt period from the interrupt signal, generating message data according to the duration, wherein the message data is used for generating GNSS analog signals of the duration by a signal processing unit, and performing interpolation processing on the message data to generate a plurality of data packets. In an optional mode, generating a plurality of data packets in the current interrupt period, and storing the plurality of data packets in a memory space with empty marking information, wherein the method specifically comprises the steps of generating serial numbers corresponding to the data packets according to the positions of the data packets in message data, storing the serial numbers in the data packets, and sequentially storing the plurality of data packets in the memory space according to the sequence of the serial numbers. In an alternative mode, before the GNSS analog signal is analyzed and processed according to the data packet, the method further comprises the steps of obtaining a sequence number in a data packet which is read currently to obtain a first sequence number, obtaining a sequence number in the data packet which corresponds to the GNSS analog signal currently to obtain a second sequence number, executing the step of analyzing and processing the data packet into the GNSS analog signal according to the data packet if the first sequence number and the second sequence number are continuous sequence numbers, and discarding the data packet which is read currently if the first sequence number and the second sequence number are discontinuous sequence numbers. In an optional mode, the method further comprises the steps of counting the number of data packets discarded by the signal processing unit through the signal processing unit, generating data loss information and sending the data loss information to the processor if the number is larger than the preset number, receiving the data loss information through the processor, and ex