A method and device for GNSS clock synchronization based on low power consumption
By analyzing UBX data packet information and adjusting the GNSS module working mode, low-power synchronization of seismometer clocks is achieved, which solves the problem of seismometer clock error accumulation and improves clock synchronization accuracy and equipment working time.
Patent Information
- Application Number
- CN202410218328.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the long-term acquisition process of seismometers, clock errors accumulate due to frequency drift of the crystal oscillator. Traditional methods are difficult to achieve high-precision clock synchronization under low power consumption conditions, affecting equipment performance.
By obtaining UBX packet information, parsing GPS status information, synchronizing UTC time to the local RTC clock, using PPS second pulse signal for clock correction, and adjusting the working mode according to the status information, linear interpolation and clock synchronization are achieved, and the work of the GNSS module is dynamically adjusted. mode to reduce power consumption.
Achieve high-precision clock synchronization under low power consumption, improve the integrity and reliability of data collection, and extend the working time of equipment. It is suitable for high-precision collection equipment that needs to work continuously for a long time.
Smart Images

Figure CN118034012B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of seismograph clock synchronization, and in particular to a low-power GNSS clock synchronization method and device. Background Art
[0002] Seismographs usually obtain their own position and clock information through GNSS modules. As the acquisition time increases, the crystal oscillator inside the seismograph will produce frequency drift with changes in temperature and environment, causing the accumulation of clock errors. As seismographs move towards distributed, high-precision acquisition, clock accuracy has become an important indicator for measuring equipment performance. The traditional method uses GPS as a unified external clock source to perform real-time correction on the seismograph's internal clock to eliminate the internal clock deviation and clock consistency problems. The seismograph calibrates the oscillation frequency of the internal crystal oscillator by obtaining the clock information and PPS signal of the GPS. When the system RTC time is consistent with the PPS second pulse interval of the GPS, the oscillation frequency of the internal clock in seconds is used as the internal clock to synchronize with the GPS clock to enter the acquisition. During the acquisition, the internal clock correction function is realized by synchronizing with the real-time GPS PPS signal. Since the internal power supply of the seismograph is supplied by a limited battery, how to achieve high-precision data acquisition under low power consumption conditions has become the main research direction of the seismograph. For this reason, the current traditional method is to reduce the power consumption of the entire machine by turning off all external interactive facilities during the instrument's acquisition period and only retaining the acquisition unit and GPS module to increase the working time and achieve low-power acquisition function.
[0003] Therefore, realizing low-power GNSS clock synchronization based on the application characteristics of seismograph clock synchronization has become an application problem that needs to be solved urgently in actual seismic acquisition.
[0004] In order to overcome these defects, the present application proposes a low-power GNSS clock synchronization method and device. Summary of the invention
[0005] The purpose of this application is to provide a low-power GNSS clock synchronization method and device to solve the above-mentioned problems.
[0006] To achieve the above objectives, this application provides the following technical solutions:
[0007] The present application provides a low-power GNSS clock synchronization method, comprising:
[0008] Get UBX data packet information;
[0009] Parse the GPS status information in the UBX data packet information, and parse the corresponding UTC time information when the status information is a positioning status;
[0010] The UTC time information is synchronized to the local RTC clock, the local clock frequency is corrected by the PPS second pulse signal to complete the clock synchronization, and the acquisition mode is entered;
[0011] Adjusting the working mode according to the state information, aligning and linearly interpolating the deviation between the PPS pulse per second signal and the local clock;
[0012] The local clock is synchronized with the corresponding clock, and the collected data after linear interpolation is stored.
[0013] Further, in the step of adjusting the working mode according to the state information, aligning and linearly interpolating the deviation between the PPS pulse per second signal and the local clock, the following steps are specifically included:
[0014] The working mode is adjusted to a cyclic tracking mode of a preset period, clock synchronization is performed when the local clock reaches the preset period, and the deviation between the PPS pulse per second signal and the local clock is aligned and linearly interpolated.
[0015] Furthermore, the steps of synchronizing the local clock with the corresponding clock and storing the collected data after linear interpolation specifically include the following steps:
[0016] Determine whether the acquired status information is a valid positioning. If it is a valid positioning, compare the second information of the local clock with the PPS second pulse interrupt signal, perform linear interpolation on the collected data according to the deviation of the local clock, and synchronize the local clock accordingly.
[0017] Furthermore, when the state information is in a locked state, the PPS pulse-per-second signal is corrected with the local clock, and linear interpolation is performed on the collected data before waiting to enter the clock synchronization state of the next preset cycle.
[0018] Furthermore, when the state information is an unlocked state, the working mode is adjusted to a cyclic tracking mode of a preset period to search for satellite signals until the acquired state information is a locked state, and then the clock synchronization and the storage of the collected data are re-performed;
[0019] If the state information is a lost-lock state after several clock synchronizations, the working mode is adjusted to a continuous working mode to search for satellite signals.
[0020] The present application also provides a low-power GNSS clock synchronization device, comprising: a GNSS module, a main control unit, a seismic signal acquisition module, a storage module and a power module;
[0021] The GNSS module is used to obtain the UBX data packet information;
[0022] The main control unit is used to parse the GPS status information in the UBX data packet information, and parse the corresponding UTC time information when the status information is a positioning state; and is also used to adjust the working mode according to the status information, and align and linearly interpolate the deviation between the PPS second pulse signal and the local clock;
[0023] The seismic signal acquisition module is used to synchronize to the local RTC clock according to the UTC time information acquired by the GNSS module, complete the clock synchronization after correcting the local clock frequency through the PPS second pulse signal, and enter the acquisition mode to send the collected data to the main control unit;
[0024] The storage module is used to store the collected data;
[0025] The power module is used to provide energy.
[0026] Furthermore, when the status information acquired by the GNSS module is a lost-lock state, the main control unit sends an instruction to set the GNSS module to perform clock synchronization at a preset period;
[0027] When the main control unit determines that the state information is locked, the seismic signal acquisition module performs local clock synchronization and inputs the acquired data into the storage module;
[0028] After the acquisition mode is completed, the main control unit adjusts the device to a low power consumption working mode.
[0029] The present application provides a device, which includes a processor and a memory coupled to the processor, wherein the memory stores program instructions for implementing a low-power GNSS clock synchronization method; the processor is used to execute the program instructions stored in the memory to implement a low-power GNSS clock synchronization method.
[0030] The present application provides a storage medium storing program instructions executable by a processor, wherein the program instructions are used to execute a low-power GNSS clock synchronization method.
[0031] The present application provides a low-power GNSS clock synchronization method and device, which has the following beneficial effects:
[0032] (1) By optimizing the cyclic tracking mode, high-precision clock synchronization can be achieved when the satellite signal is strong. At the same time, when the signal is weak or there are only a few satellite signals, the full-power continuous working mode can be turned on to quickly lock and locate, further improving the accuracy of clock synchronization.
[0033] (2) Dynamically adjust the working mode according to the status of the GNSS reception signal, effectively reducing the working power consumption of the GNSS module; in an environment with good satellite signals, clock synchronization is performed through a periodic working mode, significantly reducing power consumption;
[0034] (3) The method and device proposed in this application reduce power consumption, allowing the acquisition device to work longer under limited power supply, acquire more data, and improve data integrity and reliability;
[0035] (4) This application is applicable to various acquisition devices that require high-precision clock synchronization, especially devices such as seismographs that need to work continuously for a long time. By dynamically adjusting the working mode and performance parameters of the GNSS module, it can adapt to different environments and usage scenarios and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A flowchart of a low-power GNSS clock synchronization method according to Embodiment 1 of the present application;
[0037] Figure 2 This is a structural diagram of a low-power GNSS clock synchronization device based on Example 2 of the present application;
[0038] Figure 3 This is a schematic diagram of the device structure of Example 3 of the present application;
[0039] Figure 4 This is a schematic diagram of the storage medium structure of Example 4 of the present application. DETAILED DESCRIPTION
[0040] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0042] Example 1
[0043] See also Figure 1 , is a flowchart of a low-power GNSS clock synchronization method according to Embodiment 1 of the present application; the steps include:
[0044] S1: Get UBX data packet information.
[0045] In this embodiment, the UBX data packet information is an extension of the NMEA 0183 standard, developed by u-blox and used in its GPS modules. The UBX protocol provides a more efficient and flexible way to obtain GPS data. Compared with the traditional NMEA protocol, the UBX protocol has smaller data packets, faster parsing, and can provide more data fields and more accurate time information.
[0046] In seismograph acquisition, UBX data packet information is used to achieve low-power clock synchronization. When the GPS module can stably lock the PPS second pulse signal, low-power clock synchronization is achieved by optimizing the cyclic tracking mode. When the signal is weak or there are only a few satellite signals, the full-power continuous working mode is turned on to quickly lock and locate to ensure the accuracy and stability of clock synchronization.
[0047] UBX data packet information provides an efficient, flexible and accurate way to obtain GPS data, and provides strong support for achieving low-power clock synchronization.
[0048] S2: parse the GPS status information in the UBX data packet information, and parse the corresponding UTC time information when the status information is a positioning status.
[0049] In this embodiment, UBX data packet information is first obtained, which is usually transmitted in binary form and contains GPS status information and other related information. In the UBX protocol, each data packet has a specific header for identifying the type and length of the data packet; by checking the header information of the data packet, it is determined whether the GPS status information is included.
[0050] After confirming the type of data packet, the content of the data packet is parsed, which usually involves converting binary data into readable information, such as ASCII code. For GPS status information, the corresponding field needs to be found, which usually contains information about satellite visibility, signal quality, and positioning status.
[0051] In the process of parsing the data packet, the status information about GPS is extracted, including but not limited to the number of satellites, PDOP (position precision dilution), HDOP (horizontal precision dilution) and VDOP (vertical precision dilution).
[0052] In order to ensure the accuracy of the data, data verification is required. This is achieved by calculating the checksum or using other error detection algorithms. If the data verification fails, the data packet needs to be received or processed again.
[0053] Throughout the parsing process, we need to follow the specifications of the UBX protocol to ensure the correctness and compatibility of the data. In addition, various tools and libraries can be used to simplify the parsing process and improve data processing efficiency.
[0054] S3: Synchronize the UTC time information to the local RTC clock, complete the clock synchronization after correcting the local clock frequency through the PPS second pulse signal, and enter the acquisition mode.
[0055] In this embodiment, the acquired UTC time information is synchronized to the local RTC clock, the received PPS second pulse signal is compared with the local crystal oscillator frequency to obtain the real frequency of the local clock, and the acquisition mode is entered after the clock synchronization is completed through correction.
[0056] S4: adjusting the working mode according to the state information, and performing alignment and linear interpolation through the deviation between the PPS pulse per second signal and the local clock.
[0057] In this embodiment, the working mode is adjusted to a cyclic tracking mode of a preset period, clock synchronization is performed when the local clock reaches the preset period, and the deviation between the PPS pulse per second signal and the local clock is aligned and linearly interpolated.
[0058] S5: Perform corresponding clock synchronization on the local clock, and store the collected data after linear interpolation.
[0059] In this embodiment, it is determined whether the acquired status information is a valid positioning. If it is a valid positioning, the second information of the local clock is compared with the PPS second pulse interrupt signal, and the collected data is linearly interpolated according to the deviation of the local clock, and the local clock is synchronized accordingly.
[0060] When the state information is in a locked state, the PPS pulse-per-second signal is corrected with the local clock, and linear interpolation is performed on the collected data before waiting to enter the clock synchronization state of the next preset cycle.
[0061] When the state information is an unlocked state, the working mode is adjusted to a cyclic tracking mode of a preset period to search for satellite signals, and the clock synchronization and the storage of the collected data are performed again until the acquired state information is a locked state;
[0062] If the state information is a lost-lock state after several clock synchronizations, the working mode is adjusted to a continuous working mode to search for satellite signals.
[0063] In summary, Example 1 of the present application dynamically adjusts the working mode by acquiring status information, thereby realizing the demand for clock correction in the acquisition mode and providing technical support for the application of low-power acquisition.
[0064] Example 2
[0065] See also Figure 2, which is a structural diagram of a low-power GNSS clock synchronization device according to Example 2 of the present application; the specific contents include: a GNSS module, a main control unit, a seismic signal acquisition module, a storage module and a power supply module.
[0066] The GNSS module is used to obtain the UBX data packet information;
[0067] The main control unit is used to parse the GPS status information in the UBX data packet information, and parse the corresponding UTC time information when the status information is a positioning state; and is also used to adjust the working mode according to the status information, and align and linearly interpolate the deviation between the PPS second pulse signal and the local clock;
[0068] The seismic signal acquisition module is used to synchronize to the local RTC clock according to the UTC time information acquired by the GNSS module, complete the clock synchronization after correcting the local clock frequency through the PPS second pulse signal, and enter the acquisition mode to send the collected data to the main control unit;
[0069] The storage module is used to store the collected data;
[0070] The power module is used to provide energy.
[0071] In this embodiment, a high-precision GNSS module is connected to a seismic signal acquisition module. The seismic signal acquisition module synchronizes the local clock with the GPS signal and then enters the seismic signal acquisition mode, and sends the acquired data to the main control unit; the main control unit stores the data through the storage module; and the power supply module provides the function of energy supply for the device.
[0072] During the acquisition mode, the internal quartz crystal oscillator is affected by environmental changes such as temperature, and the clock frequency of the crystal oscillator will deviate. Therefore, the seismic signal acquisition module needs to synchronize the clock with the GNSS module in real time to eliminate the clock error. In order to achieve low-power acquisition, the main control unit will dynamically adjust the clock synchronization cycle according to the state information of the satellite signal collected by the GNSS module during the acquisition period, thereby achieving the purpose of low-power clock synchronization acquisition.
[0073] Specifically, when the device completes initialization and prepares to enter the clock synchronization workflow of the seismic signal acquisition module, the GNSS module is initialized and enters the full-power continuous working mode to receive GPS signals, and the UBX data packet information received by the GNSS module is obtained through the corresponding serial port of the main control unit. The main control unit parses the GPS status information in the UBX data packet information, and parses the corresponding UTC time information when the status information is the positioning status.
[0074] The seismic signal acquisition module synchronizes the UTC time information obtained by the GNSS module to the local RTC clock, compares the received PPS second pulse signal with the local crystal oscillator frequency to obtain the real frequency of the local clock, and enters the acquisition mode after the clock synchronization is completed through correction.
[0075] According to the status information received by the GNSS module, the main control unit sets the GNSS module to a cyclic tracking mode with a period of 10s. When the local clock reaches a time interval of 10s during the acquisition period, the clock synchronization is turned on, and the local clock deviation is aligned with the PPS second pulse and the linear interpolation of the collected data is performed. At the same time, the collected data after the corresponding clock synchronization and linear interpolation of the local clock is sent to the storage module for collection data storage.
[0076] If the status information received by the GNSS module during synchronization is a lost state, the main control unit will send a command to set the GNSS module to perform clock synchronization in a short period of 5 seconds. The main control unit will make a judgment on clock synchronization based on the status information obtained. When the received status information is locked, the seismic signal acquisition module will start the internal clock synchronization and storage of the acquired data.
[0077] If the GPS clock synchronization still cannot be performed, the main control unit switches the GNSS to a full-power continuous working mode to search for the satellite signal lock information, and only performs local clock synchronization correction and storage of collected data when the lock information is received. After the clock synchronization is completed, the main control unit switches the GNSS module to a preset cycle tracking mode for clock synchronization, and adjusts the working mode to a low-power working mode when data collection is completed.
[0078] To summarize, in Example 2 of the present application, after acquiring UTC time information through a high-precision GNSS module and completing local clock correction, the seismic signal acquisition module enters the acquisition state; during the acquisition period, due to changes in ambient temperature, the internal clock crystal oscillator needs to calibrate the clock with the GPS PPS signal in real time. In order to further reduce power consumption, the main control unit dynamically adjusts through status information, adjusts the GNSS module to a periodic cycle working mode to reduce power consumption during system operation, realizes low-power GNSS clock synchronization, and increases the working time of the entire acquisition device.
[0079] Example 3
[0080] See also Figure 3 , is a schematic diagram of the device structure of Embodiment 3 of the present application. The device 50 includes a processor 51 and a memory 52 coupled to the processor 51 .
[0081] The memory 52 stores program instructions for implementing the above-mentioned low-power GNSS clock synchronization method.
[0082] The processor 51 is used to execute program instructions stored in the memory 52 to implement a low-power GNSS clock synchronization.
[0083] The processor 51 may also be referred to as a CPU (Central Processing Unit).
[0084] The processor 51 may be an integrated circuit chip with signal processing capabilities. The processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0085] Example 4
[0086] See also Figure 4 , which is a schematic diagram of the structure of the storage medium of Example 4 of the present application. The storage medium of the embodiment of the present application stores a program file 61 that can implement all the above methods, wherein the program file 61 can be stored in the above storage medium in the form of a software product, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes, or computers, servers, mobile phones, tablets and other devices.
[0087] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0088] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
[0089] Although the embodiments of the present application have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the appended claims and their equivalents.
[0090] Of course, the present invention may have many other implementations. Based on this implementation, other implementations obtained by ordinary technicians in this field without any creative work are all within the scope of protection of the present invention.
Claims
1. A low-power GNSS clock synchronization method, characterized in that: include: Get UBX data packet information; Parse the GPS status information in the UBX data packet information, and parse the corresponding UTC time information when the status information is a positioning status; The UTC time information is synchronized to the local RTC clock, the local clock frequency is corrected by the PPS second pulse signal to complete the clock synchronization, and the acquisition mode is entered; Adjusting the working mode according to the state information, aligning and linearly interpolating the deviation between the PPS pulse per second signal and the local clock; The local clock is synchronized with the corresponding clock, and the collected data after linear interpolation is stored, which specifically includes the following steps: judging whether the acquired status information is effectively positioned, if it is effectively positioned, comparing the second information of the local clock with the PPS second pulse interrupt signal, performing linear interpolation on the collected data according to the deviation of the local clock, and performing corresponding clock synchronization on the local clock; When the state information is in a locked state, the PPS pulse-per-second signal is corrected with the local clock, and the collected data is linearly interpolated before waiting to enter the clock synchronization state of the next preset cycle; When the state information is an unlocked state, the working mode is adjusted to a cyclic tracking mode of a preset period to search for satellite signals, and the clock synchronization and the storage of the collected data are performed again until the acquired state information is a locked state; If the state information is a lost-lock state after several clock synchronizations, the working mode is adjusted to a continuous working mode to search for satellite signals.
2. A low-power GNSS clock synchronization method according to claim 1, characterized in that: In the step of adjusting the working mode according to the state information, aligning and linearly interpolating the deviation between the PPS pulse per second signal and the local clock, the following steps are specifically included: The working mode is adjusted to a cyclic tracking mode of a preset period, clock synchronization is performed when the local clock reaches the preset period, and the deviation between the PPS pulse per second signal and the local clock is aligned and linearly interpolated.
3. A device based on a low-power GNSS clock synchronization method according to claim 1, characterized in that: include: GNSS module, main control unit, seismic signal acquisition module, storage module and power module; The GNSS module is used to obtain the UBX data packet information; The main control unit is used to parse the GPS status information in the UBX data packet information, and parse the corresponding UTC time information when the status information is a positioning state; and is also used to adjust the working mode according to the status information, and align and linearly interpolate the deviation between the PPS second pulse signal and the local clock; The seismic signal acquisition module is used to synchronize to the local RTC clock according to the UTC time information acquired by the GNSS module, complete the clock synchronization after correcting the local clock frequency through the PPS second pulse signal, and enter the acquisition mode to send the collected data to the main control unit; The storage module is used to store the collected data; The power module is used to provide energy; When the status information acquired by the GNSS module is a lost-lock state, the main control unit sends an instruction to set the GNSS module to perform clock synchronization at a preset period; When the main control unit determines that the state information is locked, the seismic signal acquisition module performs local clock synchronization and inputs the acquired data into the storage module; After the acquisition mode is completed, the main control unit adjusts the device to a low power consumption working mode.
4. A device, characterized in that: The device includes a processor and a memory coupled to the processor, wherein the memory stores program instructions for implementing a low-power GNSS clock synchronization method as described in any one of claims 1-2; and the processor is used to execute the program instructions stored in the memory to implement a low-power GNSS clock synchronization method.
5. A storage medium, characterized in that: Program instructions executable by a processor are stored, and the program instructions are used to execute a low-power GNSS clock synchronization method as described in any one of claims 1-2.
