A method and system for seismic data self-synchronization

By defining the data unit format and sliding window verification, the problem of incomplete data transmission caused by the restart of the wireless node seismograph was solved, ensuring the real-time transmission of seismic data and the integrity of subsequent processing.

CN115993631BActive Publication Date: 2025-11-28CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111211858.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-18
Publication Date
2025-11-28
Estimated Expiration
2041-10-18

AI Technical Summary

Technical Problem

In existing wireless node seismographs, seismic data transmission between the seismic data transceiver and the server is prone to problems after the server or node restarts, such as real-time data not being processed according to predetermined rules, especially the inability to find the synchronization header.

Method used

The data unit format of the node seismograph is defined as a data block header plus sample point data. The last byte of the data block header is a check code. A queue buffer is established to store the data stream. The check code is calculated through a sliding window to find the synchronization header position, and the data unit is sent to the storage buffer.

Benefits of technology

It enables rapid identification of data block headers, discarding invalid data, ensuring the real-time transmission integrity of seismic data, and facilitating subsequent processing and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115993631B_ABST
    Figure CN115993631B_ABST
Patent Text Reader

Abstract

The application discloses a seismic data self-synchronization method and system. The method comprises the following steps: defining a data unit format as a data block header plus sample point data, wherein the last byte of the data block header is a check code; establishing a queue buffer area and storing a data stream received by a server in the area; defining a sliding window; controlling the sliding window to slide from the head of the queue buffer area and calculate until the check code calculation result of other bytes in the sliding window except the last byte is the same as the last byte; taking the current position of the sliding window in the queue buffer area as a synchronization head position, reading data with a data unit length from the synchronization head position in the queue buffer area each time and sending the data to a storage buffer area. The system comprises various functional units for realizing the above steps. According to the application, the problem that the server cannot find a synchronization head due to the restart of a wireless node seismograph or the server in the process of real-time transmission of seismic data from the wireless node seismograph to the server can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of petroleum seismic exploration data acquisition technology, and more specifically, relates to a seismic data self-synchronization method and system. Background Technology

[0002] In recent years, with the development of communication technology, seismic exploration and acquisition technology has gradually shifted from wired node seismographs to wireless node seismographs. Traditionally, seismic data transmission between wireless node seismographs and servers commonly uses the FTP protocol for file downloads. This method is no longer sufficient to meet the server's real-time requirements for seismic data. In recent years, more mature streaming media transmission technologies have been increasingly applied to data transmission between wireless node seismographs and servers. Existing streaming media transmission technologies are generally based on RTP / RTSP real-time transmission protocols built on the UDP protocol, enabling real-time data transmission. However, when the server or node seismograph restarts, a situation may arise where the server cannot find the synchronization header when real-time data is transmitted, resulting in the server receiving data that cannot be processed according to predetermined rules. Summary of the Invention

[0003] The purpose of this invention is to solve the problem that the server cannot find the synchronization header during the real-time transmission of seismic data from the existing wireless node seismograph to the server due to the restart of the wireless node seismograph or the server.

[0004] To achieve the above objectives, the present invention provides a method and system for self-synchronization of seismic data.

[0005] According to a first aspect of the present invention, a method for self-synchronization of seismic data is provided, the method comprising the following steps:

[0006] Define the format of the data unit transmitted externally by the nodal seismograph. The format of the data unit is a data block header plus sample point data, and the last byte of the data block header is a check code.

[0007] Establish a queue buffer and store the seismic data stream received from the server in the queue buffer;

[0008] Define a sliding window whose length is equal to the length of the data block header;

[0009] The sliding window is controlled to slide and calculate from the first byte stored in the queue buffer until the check code calculation result of all bytes in the sliding window except the last byte is the same as the last byte.

[0010] The current position of the sliding window in the queue buffer is taken as the position of a synchronization head, and data of a data unit length is read from the position of the synchronization head backward each time and sent to a preset storage buffer.

[0011] Preferably, the data unit is data collected by the node seismograph in 1 second.

[0012] Preferably, the length of the data block header is 52 bytes, and the length of the sample data is 3000 bytes.

[0013] Preferably, the check code of the data block header is a CRC check code.

[0014] Preferably, the length of the queue buffer is at least the sum of the length of the data unit and the length of the data block header.

[0015] Preferably, the seismic data self-synchronization method further comprises:

[0016] The data received by the storage buffer is subjected to persistent processing.

[0017] Preferably, the persistent processing of the data received by the storage buffer is specifically:

[0018] Whenever the storage buffer receives data of a data unit length, the data is written into a network storage.

[0019] According to a second aspect of the present application, a seismic data self-synchronization system is provided, which comprises the following functional units:

[0020] A data unit format definition unit is configured to define the format of a data unit transmitted by a node seismograph, wherein the format of the data unit is a data block header plus sample data, and the last byte of the data block header is a check code;

[0021] A queue buffer construction unit is configured to establish a queue buffer and store a seismic data stream received by a server in the queue buffer;

[0022] A sliding window definition unit is configured to define a sliding window, wherein the length of the sliding window is equal to the length of the data block header;

[0023] A check code calculation unit is configured to control the sliding window to start sliding calculation from the first byte stored in the queue buffer until the check code calculation result of other bytes in the sliding window except the last byte is the same as the last byte.

[0024] A data reading and sending unit is configured to read data from the queue buffer backward from the position of the synchronization head by a data unit length each time and send the data to a preset storage buffer.

[0025] Preferably, the data unit is data collected by the node seismograph within 1 second.

[0026] The length of the data block header is 52 bytes, and the length of the sample data is 3000 bytes.

[0027] The check code of the data block header is a CRC check code.

[0028] The length of the queue buffer is at least the sum of the length of the data unit and the length of the data block header.

[0029] Preferably, the seismic data self-synchronization system further comprises the following functional units:

[0030] A data persistence unit is configured to perform persistence processing on the data received by the storage buffer.

[0031] The present application has the following advantages:

[0032] The seismic data self-synchronization method of the present application comprises the following steps: first, defining the format of a data unit transmitted by a node seismograph, wherein the format of the data unit is a data block header plus sample data, and the last byte of the data block header is a check code; second, establishing a queue buffer and storing a seismic data stream received by a server in the queue buffer; third, defining a sliding window, wherein the length of the sliding window is equal to the length of the data block header; fourth, controlling the sliding window to start sliding calculation from the first byte stored in the queue buffer until the check code corresponding to all the bytes in the sliding window except the last byte is the same as the last byte; and finally, taking the current position of the sliding window in the queue buffer as the position of the synchronization head, reading data from the position of the synchronization head backward by a data unit length each time and sending the data to a preset storage buffer.

[0033] The seismic data self-synchronization method of the present application stores the seismic data stream received by the server in a queue buffer, defines a sliding window with the size of a data block header, slides from the first byte of the queue buffer, locates the position of the data block header by searching the data block header, and performs data crc comparison on the data block header until a complete data block header is found and the position of the data block header is recorded.

[0034] The seismic data self-synchronization system of the present application belongs to the same general inventive concept as the seismic data self-synchronization method described above, and therefore has the same beneficial effects as the seismic data self-synchronization method described above, which will not be described again here.

[0035] Other features and advantages of the present application will be described in detail in the following specific embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0036] The above and other objects, features and advantages of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which like reference characters refer to like parts throughout the several views.

[0037] Figure 1 An implementation flowchart of the seismic data self-synchronization method according to Embodiment 1 of the present application is shown;

[0038] Figure 2 A sliding diagram of the sliding window according to Embodiment 1 of the present application is shown. DETAILED DESCRIPTION

[0039] Preferred embodiments of the present application will be described in more detail below. Although the following describes preferred embodiments of the present application, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0040] Embodiment 1: Figure 1 An implementation flowchart of the seismic data self-synchronization method according to Embodiment 1 of the present application is shown. Referring to Figure 1 , the seismic data self-synchronization method according to Embodiment 1 of the present application includes the following steps:

[0041] Step S100, defining a format of a data unit transmitted by a node seismograph to outside, the format of the data unit being a data block header plus sample point data, the last byte of the data block header being a check code;

[0042] Step S200, establishing a queue buffer, and storing the seismic data stream received by a service end in the queue buffer;

[0043] Step S300, defining a sliding window, the length of the sliding window being equal to the length of the data block header;

[0044] Step S400, controlling the sliding window to start sliding calculation from the first byte stored in the queue buffer until the check code calculation result corresponding to the other bytes except the last byte in the sliding window is the same as the last byte;

[0045] Step S500, taking the current position of the sliding window in the queue buffer as the position of a synchronization header, reading data of a data unit length from the position of the synchronization header in the queue buffer each time and sending the data to a preset storage buffer.

[0046] Further, in step S100 of the embodiment of the present application, the data unit is the data collected by the node seismograph within 1 second.

[0047] Still further, in step S100 of the embodiment of the present application, the length of the data block header is 52 bytes, and the length of the sample point data is 3000 bytes.

[0048] Still further, in step S100 of the embodiment of the present application, the check code of the data block header is a CRC check code.

[0049] Still further, in step S200 of the embodiment of the present application, the length of the queue buffer is the sum of the length of the data unit and the length of the data block header. Since the first byte received by the service end can appear at any position of the data unit, in order to accurately find the position where the 52nd byte appears, a data unit length plus a data block header length is needed to ensure that the queue buffer contains a complete data block header in any case, that is, the length of the queue buffer is 3052+52=3104 bytes.

[0050] Still further, the seismic data self-synchronization method of the embodiment of the present application further comprises the following steps:

[0051] Performing persistent processing on the data received by the storage buffer.

[0052] Specifically, in the embodiment of the present application, the persisting processing of the data received by the storage buffer is specifically:

[0053] Whenever the storage buffer receives a data unit length of data, the data is written into the network storage.

[0054] Specifically, Figure 2 A sliding diagram of the sliding window of the embodiment of the present application is shown. Referring to Figure 2 , a 52-byte window is defined, and the queue buffer is calculated from the first byte, and each time it is calculated by sliding one byte backward, the crc check value of the 51 bytes in front of the sliding window is calculated and compared with the 52nd byte in the window. Through the sliding calculation, the starting position S of the data block header in the queue buffer is found, S is the position of the synchronization header, and the first S-1 bytes are removed from the queue buffer, and a data unit size of data is continuously read from the Sth byte and sent to the storage buffer. Subsequently, every 3052 bytes of data received are sent to the storage buffer.

[0055] Embodiment 2: On the basis of the self-synchronization method of seismic data proposed in embodiment 1, the embodiment of the present application proposes a self-synchronization system of seismic data.

[0056] The self-synchronization system of seismic data in the embodiment of the present application comprises the following functional units:

[0057] A data unit format definition unit is configured to define the format of the data unit transmitted by the node seismograph, wherein the format of the data unit is a data block header plus sample point data, and the last byte of the data block header is a check code;

[0058] A queue buffer construction unit is configured to establish a queue buffer and store the seismic data stream received by the server in the queue buffer;

[0059] A sliding window definition unit is configured to define a sliding window, wherein the length of the sliding window is equal to the length of the data block header;

[0060] A check calculation unit is configured to control the sliding window to start sliding calculation from the first byte stored in the queue buffer, and the calculation result of the check code corresponding to the other bytes except the last byte in the sliding window is the same as the last byte.

[0061] A data reading and sending unit is configured to take the current position of the sliding window in the queue buffer as the position of the synchronization header, read one data unit length of data from the synchronization header position in the queue buffer each time and send it to the pre-set storage buffer.

[0062] Further, in the embodiment of the present application, the data unit is data collected by the node seismograph in 1 second.

[0063] The length of the data block header is 52 bytes, and the length of the sample data is 3000 bytes.

[0064] The check code of the data block header is a CRC check code.

[0065] The length of the queue buffer is at least the sum of the length of the data unit and the length of the data block header.

[0066] Further, the self-synchronous system of seismic data in the embodiment of the present application further comprises:

[0067] A data persistence unit is configured to perform persistence processing on the data received by the storage buffer.

[0068] Specifically, in the embodiment of the present application, the persistence processing on the data received by the storage buffer is specifically:

[0069] Whenever the storage buffer receives data with the length of a data unit, the data is written into the network storage.

[0070] The self-synchronous system of seismic data in the embodiment of the present application can solve the problem of data reception caused by abnormality during real-time transmission of seismic data of the wireless node instrument in seismic exploration, and can enable the server to quickly search for a synchronization header and receive complete data units on time, thereby facilitating subsequent processing.

[0071] The above has described the embodiments of the present application, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes are obvious to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A method of self-synchronizing seismic data, characterized by, The method comprises the following steps: defining the format of a data unit transmitted by a node seismograph, wherein the format of the data unit is a data block header plus sample point data, and the last byte of the data block header is a check code; establishing a queue buffer to store the seismic data stream received by a server in the queue buffer; defining a sliding window, wherein the length of the sliding window is equal to the length of the data block header; controlling the sliding window to start sliding calculation from the first byte stored in the queue buffer, until the check code calculation result of the byte in the sliding window except the last byte is the same as the last byte; taking the current position of the sliding window in the queue buffer as the position of a synchronization header, reading data of a data unit length from the position of the synchronization header in the queue buffer each time and sending the data to a preset storage buffer; wherein the data unit is the data collected by the node seismograph within 1 second; the length of the data block header is 52 bytes, and the length of the sample point data is 3000 bytes; the check code of the data block header is a CRC check code; the length of the queue buffer is at least the sum of the length of the data unit and the length of the data block header.

2. The method for seismic data self-synchronization according to claim 1, characterized in that, Further comprising: performing persistent processing on the data received by the storage buffer.

3. The method for seismic data self-synchronization of claim 2, wherein, The persistent processing on the data received by the storage buffer is specifically: writing the data into a network storage each time the storage buffer receives data of a data unit length.

4. A seismic data self-synchronization system characterized by, The method comprises the following steps: a data unit format defining unit is configured to define the format of a data unit transmitted by a node seismograph, wherein the format of the data unit is a data block header plus sample point data, and the last byte of the data block header is a check code; a queue buffer constructing unit is configured to establish a queue buffer to store the seismic data stream received by a server in the queue buffer; a sliding window defining unit is configured to define a sliding window, wherein the length of the sliding window is equal to the length of the data block header; a check calculation unit is configured to control the sliding window to start sliding calculation from the first byte stored in the queue buffer, until the check code calculation result of the byte in the sliding window except the last byte is the same as the last byte; a data reading and sending unit is configured to take the current position of the sliding window in the queue buffer as the position of a synchronization header, read data of a data unit length from the position of the synchronization header in the queue buffer each time and send the data to a preset storage buffer; wherein the data unit is the data collected by the node seismograph within 1 second; the length of the data block header is 52 bytes, and the length of the sample point data is 3000 bytes; the check code of the data block header is a CRC check code; the length of the queue buffer is at least the sum of the length of the data unit and the length of the data block header.

5. The seismic data self-synchronization system of claim 4, wherein, Further comprising: a data persistent unit is configured to perform persistent processing on the data received by the storage buffer.

Citation Information

Patent Citations

  • Method and system for synchronizing data among network nodes

    CN102065098A

  • Parallel frame synchronization method, sending end, receiving end and low earth orbit satellite communication system

    CN112532371A