Signal processing method, system and equipment for measurement while drilling and storage medium
Through multi-stage filtering sampling and encoding processing in downhole pipe detection equipment and ground processing equipment, the problems of downhole signal attenuation and noise interference are solved, stable signal transmission and accurate decoding are achieved, and data transmission efficiency and decoding accuracy are improved.
Patent Information
- Application Number
- CN202510802447.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2025-08-15
AI Technical Summary
During oil drilling, complex underground environments lead to signal attenuation and noise interference. The existing technology is difficult to achieve stable transmission and accurate decoding of signals in complex environments, and cannot meet the growing demand for data transmission.
The downhole sensor data is encoded into the mud pulse signal through the downhole pipe exploration equipment. The ground processing equipment converts the mud pulse signal into a digital signal and performs multi-stage filtering sampling. Finally, it is decoded on the upper computer to obtain geological parameter information, including multi-stage filtering processing and encoding transmission.
Effectively filter out noise, improve signal integrity and accuracy, improve signal transmission efficiency and decoding accuracy, and meet data transmission needs in complex drilling environments.
Smart Images

Figure CN120487055A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of oil drilling management, and in particular to a signal processing method, system, device and storage medium for measurement while drilling. Background Art
[0002] With the continuous development of oil exploration and production technology, real-time communication technology between the ground and underground is increasingly valued.
[0003] During the oil drilling process, the downhole probe transmits drilling information to the ground in the form of mud pulses through a pulser, and the ground processing system obtains data through AD sampling, filtering and other processing and then decoding.
[0004] However, due to the complex underground environment, noise interference and signal attenuation, the ground received signal is weak and difficult to accurately decode. Existing technologies usually need to reduce data transmission efficiency to ensure signal transmission distance and accuracy, which cannot meet the growing data transmission needs. Summary of the Invention
[0005] The present application provides a signal processing method, system, device and storage medium for measurement while drilling, which can effectively filter out noise, improve signal integrity and accuracy, and meet the needs in complex drilling environments.
[0006] In the first aspect, the present application provides a signal processing method for measurement while drilling, which is suitable for a signal processing system for measurement while drilling, wherein the signal processing system for measurement while drilling includes a downhole probe device, a ground processing device and a host computer, and the signal processing method for measurement while drilling includes: the downhole probe device encodes the acquired downhole sensor data into a mud pulse signal to obtain a first mud pulse signal and sends it to the ground processing device; the ground processing device converts the first mud pulse signal into a digital signal, performs multi-stage filtering and sampling on the digital signal to obtain sampling data, encodes the sampling data to obtain encoded data and sends it to the host computer; the host computer decodes the encoded data to obtain geological parameter information.
[0007] In one possible implementation, the ground processing equipment converts the first mud pulse signal into a digital signal, specifically including: collecting the first mud pulse signal based on a pressure sensor, and converting the first mud pulse signal into a current signal; converting the current signal into a voltage signal based on a sampling resistor, sampling and processing the voltage signal based on an analog-to-digital converter, and converting the sampled voltage sampling data into the digital signal.
[0008] In one possible implementation, the ground processing equipment performs multi-stage filtering and sampling on the digital signal to obtain sampling data, specifically including: performing a first-stage filtering and sampling process on the digital signal to obtain a first-stage sampling data, performing a second-stage filtering and sampling process on the first-stage sampling data to obtain a second-stage sampling data, and performing a third-stage filtering and sampling process on the second-stage sampling data to obtain sampling data.
[0009] In one possible implementation, the ground processing equipment performs a first-level filtering and sampling process on the digital signal to obtain first-level sampling data, performs a second-level filtering and sampling process on the first-level sampling data to obtain second-level sampling data, and performs a third-level filtering and sampling process on the second-level sampling data to obtain sampling data, specifically including: performing a first-level downsampling process on the digital signal, and performing a Butterworth low-pass filtering process on the obtained first-level downsampling data to obtain the first-level sampling data; performing a second-level downsampling process on the first-level sampling data, and performing a Chebyshev low-pass filtering process on the obtained second-level downsampling data to obtain the second-level sampling data; performing a third-level downsampling process on the second-level sampling data, and performing an elliptical filtering process on the obtained third-level downsampling data to obtain sampling data; wherein, the sampling rates corresponding to the first-level downsampling process, the second-level downsampling process, and the third-level downsampling process show a decreasing trend.
[0010] In one possible implementation, the ground processing equipment encodes the sampled data to obtain encoded data and sends it to the host computer, specifically including: performing floating-point encoding on the sampled data to obtain encoded data in floating-point format; writing the encoded data into a preset four-level data buffer, transmitting the buffered encoded data in the four-level data buffer to the serial port peripheral through a direct memory access controller, and transmitting it to the host computer through the serial port.
[0011] In one possible implementation, the ground processing equipment writes the encoded data into a preset four-level data buffer, and transmits the buffered encoded data in the four-level data buffer to the serial port peripheral through a direct memory access controller, specifically including: writing the encoded data into the preset four-level data buffer, and obtaining the write pointer value and the read pointer value in real time during the writing process; judging whether the write pointer value and the read pointer value are the same; if not, transmitting the buffer data directly to the serial port peripheral through the direct memory access controller; otherwise, determining that the four-level data buffer is full, suspending writing the encoded data into the preset four-level data buffer.
[0012] In one possible implementation, the downhole probe device encodes the acquired downhole sensor data into a mud pulse signal to obtain a first mud pulse signal, specifically including: collecting downhole sensor data in real time based on the downhole sensor; converting the downhole sensor data into binary data based on a preset encoding rule, and modulating the binary data into a first mud pulse signal by controlling the switching action of the mud pulse generator.
[0013] In a second aspect, the present application provides a signal processing system for measurement while drilling, comprising a downhole probe device, a ground processing device and a host computer; wherein the downhole probe device is connected to the ground processing device, and the ground processing device is connected to the host computer.
[0014] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0016] The embodiments of the present application provide a signal processing method, system, device, and storage medium for measurement while drilling, which have the following advantages over the prior art:
[0017] The technical solution of the present application encodes the acquired downhole sensor data into the mud pulse signal through the downhole probe equipment to obtain a first mud pulse signal and sends it to the ground processing equipment, which effectively solves the signal attenuation and noise interference problems caused by the complex downhole environment, and ensures that the signal can be stably transmitted to the ground; the ground processing equipment converts the first mud pulse signal into a digital signal, and further samples the data signal through multi-stage filtering to accurately filter out noise in different frequency bands, significantly improving the signal quality; finally, the sampled data after multi-stage filtering is encoded into coded data and transmitted to the host computer for decoding to obtain accurate geological parameter information; this setting not only improves the signal integrity and decoding accuracy, but also reduces the processing burden through multi-stage filtering sampling technology, improves data transmission efficiency, and meets the high requirements for data transmission and decoding in complex drilling environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0021] Figure 1 This is a flow chart of an embodiment of a signal processing method for measurement while drilling provided by the present application;
[0022] Figure 2 This is a structural diagram of an embodiment of a signal processing system for measurement while drilling provided by the present application;
[0023] Figure 3 This is a schematic diagram of a first mud pulse signal acquisition system according to an embodiment of the present application;
[0024] Figure 4 1 is a waveform diagram of a first mud pulse signal without multi-stage filtering sampling in an embodiment provided by the present application;
[0025] Figure 5 This is a waveform diagram of sampled data obtained after multi-stage filtering and sampling in an embodiment provided by the present application;
[0026] Figure 6 This is a schematic diagram of a data transmission structure of a direct memory access controller according to an embodiment of the present application;
[0027] Figure 7 This is a structural diagram of a computer device provided by this application. DETAILED DESCRIPTION
[0028] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0029] The disclosure below provides many different embodiments or examples for implementing different structures of the present application. In order to simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, these are merely examples and are not intended to limit the present application. In addition, the present application may repeat reference numbers and / or letters in different examples. Such repetition is for the purpose of simplicity and clarity and does not in itself indicate the relationship between the various embodiments and / or settings discussed.
[0030] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0031] It should also be understood that the terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0032] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0033] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0034] Example 1, see Figure 1 , Figure 1 FIG. 1 is a flow chart of an embodiment of a signal processing method for measurement while drilling provided by the present application. Figure 1 As shown, the method is applicable to a signal processing system for measurement while drilling, wherein the signal processing system for measurement while drilling includes a downhole probe device, a surface processing device, and a host computer. The method includes steps 101 to 103, which are specifically as follows:
[0035] Step 101: The downhole probe device encodes the acquired downhole sensor data into a mud pulse signal to obtain a first mud pulse signal and sends the first mud pulse signal to the surface processing device.
[0036] In one embodiment, downhole sensor data is collected in real time based on downhole sensors, wherein the downhole sensor data includes but is not limited to well inclination parameters, azimuth parameters, gamma value parameters and gravity tool face parameters.
[0037] Specifically, the downhole sensors include but are not limited to inclinometers and gamma sensors, wherein the inclinometers are used to collect parameters such as the well inclination angle, the azimuth angle of the drill bit, and the gravity tool face angle, and the gamma sensor is used to collect the gamma ray intensity of the formation; based on these downhole sensors, key geological parameters of the drill bit during drilling are collected in real time to provide basic data for subsequent data processing and analysis.
[0038] In one embodiment, the downhole probe device converts the downhole sensor data into binary data based on a preset coding rule; wherein the preset coding rule includes but is not limited to a combination code coding rule or a Manchester coding rule.
[0039] Specifically, when the preset coding rule is a combination code coding rule, the downhole sensor data collected by the downhole sensor is quantized through an analog-to-digital converter to obtain a digital value corresponding to each parameter in the downhole sensor data, and the digital value corresponding to each parameter in the downhole sensor data is sorted and combined according to a preset bit segment to obtain binary data.
[0040] Specifically, when the preset encoding rule is the Manchester encoding rule, the downhole sensor data collected by the downhole sensor is quantized by an analog-to-digital converter to obtain a digital value corresponding to each parameter in the downhole sensor data, and the digital value corresponding to each parameter in the downhole sensor data is converted into binary form to obtain initial binary data, and each binary bit in the initial binary data is converted based on the Manchester encoding format to obtain binary data in the Manchester encoding format; wherein, the Manchester encoding format is that if the binary bit is "0", the binary bit is encoded as a high-level to low-level transition; if the binary bit is "1", the binary bit is encoded as a low-level to high-level transition.
[0041] In one embodiment, the downhole probe device modulates the binary data into a first mud pulse signal by controlling the switching action of a mud pulse generator.
[0042] Specifically, a mud pulse generator is a device that can control the change of mud pressure according to the input digital signal; it usually consists of a solenoid valve or similar system that can quickly respond to the control signal to change the mud pressure; this pressure change can be detected by surface equipment and decoded into the original digital signal.
[0043] Specifically, a corresponding pulse control signal is generated based on the binary data, and the pulse control signal is sent to the mud pulse generator, so that after receiving the pulse control signal, the mud pulse generator controls the switching action of the solenoid valve in the mud pulse generator according to the level state of the pulse control signal, and generates a pulse sequence corresponding to the binary data based on the switching action of the solenoid valve, and uses the pulse sequence as the first mud pulse signal.
[0044] Specifically, when generating a corresponding pulse control signal based on the binary data, it is determined whether the binary bit of the binary data is "1". If so, a high-voltage pulse control signal is generated; otherwise, a low-voltage pulse control signal is generated.
[0045] Specifically, according to the level state of the pulse control signal, the switching action of the solenoid valve in the mud pulse generator is controlled, and a pulse sequence corresponding to the binary data is generated based on the switching action of the solenoid valve. When the level state of the pulse control signal is high, the solenoid valve in the mud pulse generator is controlled to open, and the mud pressure increases to generate a high-voltage pulse. If the level state of the pulse control signal is high or low, the solenoid valve in the mud pulse generator is controlled to close, and the mud pressure decreases to generate a low-voltage pulse. The pulses corresponding to each binary bit in the binary data are sequentially integrated to obtain a pulse sequence.
[0046] In one embodiment, when the downhole probe device transmits the first mud pulse signal to the surface processing equipment, the mud column in the drill string is used as a transmission medium to propagate the first mud pulse signal to the surface through the pressure change of the mud column.
[0047] Step 102: The ground processing equipment converts the first mud pulse signal into a digital signal, performs multi-stage filtering sampling on the digital signal to obtain sampling data, encodes the sampling data to obtain encoded data, and sends the encoded data to the host computer.
[0048] In one embodiment, the first mud pulse signal is received based on a pressure sensor provided in the ground processing equipment.
[0049] Specifically, the ground processing equipment includes but is not limited to a ground interface box.
[0050] Specifically, the mud column is the mud used in the drilling process, which forms a continuous fluid channel between the drill pipe and the well wall; the first mud pulse signal is transmitted to the ground through the pressure changes of the mud column; these pressure changes can be detected by the pressure sensor on the ground.
[0051] Specifically, the pressure sensor is usually installed on a riser of ground processing equipment and can detect the first mud pulse signal in real time.
[0052] like Figure 3 As shown, Figure 3 This is a schematic diagram of a first mud pulse signal acquisition system according to an embodiment of the present application; the reference numerals in the figure are a drill bit 31, a pulse generator 32, a drill string 33, a pressure sensor 34, a ground processing device 35, and a host computer 36.
[0053] In one embodiment, the ground processing equipment collects the first mud pulse signal based on a pressure sensor and converts the first mud pulse signal into a current signal; converts the current signal into a voltage signal based on a sampling resistor, samples and processes the voltage signal based on an analog-to-digital converter, and converts the sampled voltage sampling data into the digital signal.
[0054] Specifically, since the first mud pulse signal is transmitted to the ground through the pressure change of the mud column, when the first mud pulse signal is collected based on the pressure sensor, the pressure change in the detected mud column is converted into a current signal based on the pressure sensor; because many pressure sensors output a current that is proportional to the pressure, therefore, by obtaining the proportional constant and the pressure value obtained by the pressure sensor, the current value proportional to the pressure value can be calculated based on the proportional constant and the pressure value, so as to realize the conversion of the first mud pulse signal into a current signal.
[0055] Specifically, the sampling resistor is a high-precision sampling resistor.
[0056] Specifically, after obtaining the resistance value corresponding to the sampling resistor, the current signal is converted into a voltage signal based on Ohm's law.
[0057] Specifically, the voltage signal is sampled and processed based on a preset frequency based on an analog-to-digital converter, and the voltage value of each sampling point is quantized into a digital value, and the continuous analog signal is converted into a discrete digital signal during the quantization process; after processing by the analog-to-digital converter, the obtained digital signal can be used for subsequent data processing; these digital signals contain information of downhole sensor data and can be decoded and analyzed to restore the original geological parameters.
[0058] Specifically, the analog-to-digital converter is a 32-bit high-precision analog-to-digital converter; and its sampling mode is set to a continuous sampling mode to ensure signal integrity.
[0059] In one embodiment, the multi-stage filtering and sampling process includes a primary filtering and sampling process, a secondary filtering and sampling process, and a tertiary filtering and sampling process.
[0060] In one embodiment, the ground processing equipment performs a first-level filtering and sampling process on the digital signal to obtain the first-level sampling data by performing a first-level downsampling process on the digital signal and performing a Butterworth low-pass filtering process on the obtained first-level downsampling data to obtain the first-level sampling data.
[0061] Specifically, the first-level downsampling process is to downsample the sampling rate from a first sampling rate to a second sampling rate based on a first downsampling factor, wherein the first sampling rate is greater than the second sampling rate.
[0062] Preferably, the first sampling rate can be set to 19200 SPS; the second sampling rate can be set to 1920 SPS; the user can also set it to other sampling rates based on needs, which is not specifically limited here.
[0063] Specifically, a Butterworth low-pass filter is used to perform Butterworth low-pass filtering on the obtained first-stage down-sampling data to eliminate high-frequency pump noise and switching noise.
[0064] In one embodiment, the ground processing equipment performs secondary filtering and sampling processing on the primary sampling data to obtain the secondary sampling data by performing secondary downsampling processing on the primary sampling data and performing Chebyshev low-pass filtering on the obtained secondary downsampling data to obtain the secondary sampling data.
[0065] Specifically, the secondary downsampling process is to downsample the sampling rate from the second sampling rate to the third sampling rate based on a second downsampling factor, wherein the second sampling rate is greater than the third sampling rate.
[0066] Preferably, the second sampling rate can be set to 1920 SPS; the third sampling rate can be set to 192 SPS; the user can also set it to other sampling rates based on needs, which is not specifically limited here.
[0067] Specifically, a Chebyshev I-type low-pass filter is used to perform Chebyshev low-pass filtering on the obtained secondary down-sampled data to effectively filter out mechanical vibration noise in the mid-frequency band.
[0068] In one embodiment, the ground processing equipment performs three-level filtering sampling processing on the secondary sampling data. When obtaining the sampling data, the sampling data is obtained by performing three-level downsampling processing on the secondary sampling data and performing elliptical filtering processing on the obtained three-level downsampling data.
[0069] Specifically, the three-level downsampling process is to downsample the sampling rate from a third sampling rate to a fourth sampling rate based on a third downsampling factor, wherein the third sampling rate is greater than the fourth sampling rate.
[0070] Preferably, the third sampling rate can be set to 192 SPS; the fourth sampling rate can be set to 48 SPS; the user can also set it to other sampling rates based on needs, which is not specifically limited here.
[0071] Specifically, an elliptical low-pass filter is used to perform elliptical filtering on the obtained three-level down-sampling data to eliminate low-frequency interference and retain valid signals.
[0072] In one embodiment, when the ground processing equipment performs multi-stage filtering sampling processing on the digital signal, the filtering algorithms used at different levels differ in that the coefficients of the filters in the formula are different due to the different filters used; the filtering algorithms are as follows:
[0073] y(n)=
[0074] b[0] * x[n]+b[1] * x[n-1]+b[2] * x[n-2]+…+b[numTaps-1] * x[n-numTaps+1];
[0075] Where y(n) is the output value of the filter after filtering the nth sample data, b[i] is the filter coefficient, the array size is numTaps, which is the filter order – 1, and x[b] is the nth sample data.
[0076] In one embodiment, the sampling rates corresponding to the first-level downsampling process, the second-level downsampling process, and the third-level downsampling process are in a decreasing trend.
[0077] like Figure 4 As shown, Figure 4 FIG. 1 is a waveform diagram of a first mud pulse signal without multi-stage filtering sampling in an embodiment provided by the present application; FIG. Figure 5 As shown, Figure 5 This is a waveform diagram of sampled data obtained after multi-stage filtering sampling in an embodiment provided by the present application.
[0078] In one embodiment, by setting up a three-level progressive filtering sampling architecture, the optimal filter is selected for different frequency band noise in the filtering sampling processing at different levels, avoiding the problem that a single filter cannot cover the noise of the entire frequency band; and dynamic downsampling reduces the data volume to 0.25% of the original data while retaining the valid signal, which can significantly reduce the MCU processing burden. The selection design of the three filters can optimize the characteristics of different mud pulse signals and improve the decoding accuracy of the host computer.
[0079] In one embodiment, the ground processing equipment performs floating-point encoding on the sampled data to obtain encoded data in floating-point format; writes the encoded data into a preset four-level data buffer, transmits the buffered encoded data in the four-level data buffer to the serial port peripheral through a direct memory access controller, and transmits it to the host computer through the serial port.
[0080] Specifically, the sampled data is encapsulated into a floating-point format based on the IEEE 754 standard to obtain floating-point format encoded data; floating-point encoding can represent a large range and decimal precision, and avoids effective signal distortion caused by quantization error of fixed-point numbers.
[0081] Specifically, the filtered digital signal is normalized to be mapped to a floating-point range, and is packaged into 32-bit binary data according to the sign bit, exponent bit, and mantissa bit.
[0082] In one embodiment, the ground processing equipment writes the encoded data into a preset four-level data buffer. When transmitting the buffered encoded data in the four-level data buffer to the serial port peripheral through a direct memory access controller, the encoded data is written into the preset four-level data buffer, and during the writing process, a write pointer value and a read pointer value are obtained in real time; it is determined whether the write pointer value and the read pointer value are the same. If not, the buffer data is directly transmitted to the serial port peripheral through the direct memory access controller; otherwise, it is determined that the four-level data buffer is full, and the writing of the encoded data into the preset four-level data buffer is suspended.
[0083] Specifically, the four-level data buffer includes four fixed-capacity ring buffers; wherein the fixed capacity is a two-dimensional array 4x86, wherein 4 represents 4-level buffer and 86 represents buffer length.
[0084] Specifically, the writing and reading of data in the fourth-level data buffer are controlled by two pointers, the write pointer wp and the read pointer rp. During the process of writing data into the buffer, the values of the write pointer and the read pointer are obtained in real time to monitor the status of the buffer.
[0085] Specifically, if the write pointer value is different from the read pointer value, it means that there is unread data in the buffer, and these unread data can be transferred to the serial port peripheral through the direct memory access controller DMA; if the write pointer value is the same as the read pointer value, it means that the buffer is full and it is necessary to pause writing new encoded data until there is space available in the buffer.
[0086] Preferably, since the sampling rate of the sampled data is reduced to 48SPS after multi-stage filtering and sampling processing, that is, 48 points are sampled per second, it is set to write one point into the data buffer for each sampling. When 12 points are sampled, the check bit is calculated to obtain a complete package of data, a total of 86 bits, and the data packet is written into the buffer pointed to by the current write pointer wp. At this time, the write pointer wp is increased by 1, that is, each time there is a complete package of data, the write pointer wp is increased by 1, up to a maximum of 4; the read pointer rp starts from 0, when the read pointer rp is not equal to the write pointer wp, it means that there is data to be read. At this time, the sampled data is read out using the serial port, and the read pointer rp is increased by 1; when the write pointer wp is equal to the read pointer rp, the buffer is full; when the write pointer wp is not equal to the read pointer rp, there is data to be read in the buffer; in this way, an efficient four-level buffer can be implemented to manage the data received by the serial port and send data according to commands.
[0087] Specifically, the direct memory access controller is an internal resource of the single-chip microcomputer in the ground processing equipment. Using the direct memory access controller DMA to realize serial port transmission can enable data to be directly transmitted between the memory SRAM and the serial port peripheral by the direct memory access controller DMA, thereby reducing the CPU burden; Figure 6 As shown, Figure 6 This is a schematic diagram of the data transmission structure of a direct memory access controller of an embodiment provided by the present application; in the figure, the direct memory access controller DMA is connected to the serial port peripheral and the memory SRAM through a bus.
[0088] Step 103: The host computer decodes the encoded data to obtain geological parameter information.
[0089] In one embodiment, the host computer decodes the encoded data and, when obtaining geological parameter information, performs a check bit check on the encoded data. If the check fails, it is marked as invalid data and requested to be retransmitted. If the check is correct, the encoded data is divided into multiple data packets based on the data packet length, and a floating-point binary value is extracted from each data packet. The floating-point binary value is decoded into a floating-point value according to the IEEE 754 standard; based on preset encoding rules, the decoded floating-point values are separated according to parameter type and parsed into specific geological parameters.
[0090] Specifically, when the encoded data is divided into multiple data packets according to the data packet length, since when 12 points are sampled, the check bit is calculated and a complete packet of data, a total of 86 bits, can be obtained. Therefore, when the upper computer receives a continuous encoded data stream, the received encoded data can be divided into multiple data packets based on the fixed data packet length.
[0091] Specifically, the floating-point values obtained after decoding are separated according to parameter types and parsed into specific geological parameters. The byte position of the decoded floating-point values in the data packet is obtained. The geological parameter type corresponding to the byte position is determined using a predefined parameter type-byte position mapping relationship. Based on the geological parameter type, the floating-point values are converted into units to obtain the corresponding geological parameters.
[0092] Example 2, see Figure 2 , Figure 2 This is a schematic diagram of the structure of an embodiment of a signal processing system for measurement while drilling provided by this application. Figure 2 As shown, the system includes downhole probe equipment 201, surface processing equipment 202 and host computer 203, which are as follows:
[0093] The downhole pipe probe device 201 is connected to the ground processing device 202 , and the ground processing device 202 is connected to the host computer 203 .
[0094] In one embodiment, the downhole probe device 201 is used to encode the acquired downhole sensor data into a mud pulse signal to obtain a first mud pulse signal and send the first mud pulse signal to the surface processing device 202 .
[0095] In one embodiment, the ground processing equipment 202 is used to convert the first mud pulse signal into a digital signal, perform multi-stage filtering sampling on the digital signal to obtain sampling data, encode the sampling data to obtain encoded data and send it to the host computer 203.
[0096] In one embodiment, the host computer 203 is used to decode the encoded data to obtain geological parameter information.
[0097] In one embodiment, the ground processing equipment 202 is used to convert the first mud pulse signal into a digital signal, specifically including: collecting the first mud pulse signal based on a pressure sensor, and converting the first mud pulse signal into a current signal; converting the current signal into a voltage signal based on a sampling resistor, and sampling and processing the voltage signal based on an analog-to-digital converter, and converting the sampled voltage sampling data into the digital signal.
[0098] In one embodiment, the ground processing equipment 202 is used to perform multi-stage filtering and sampling on the digital signal to obtain sampling data, specifically including: performing a first-level filtering and sampling process on the digital signal to obtain a first-level sampling data, performing a second-level filtering and sampling process on the first-level sampling data to obtain a second-level sampling data, and performing a third-level filtering and sampling process on the second-level sampling data to obtain sampling data.
[0099] In one embodiment, the ground processing equipment 202 is used to perform a first-level filtering and sampling process on the digital signal to obtain first-level sampling data, and perform a second-level filtering and sampling process on the first-level sampling data to obtain second-level sampling data, and perform a third-level filtering and sampling process on the second-level sampling data to obtain sampling data, specifically including: performing a first-level downsampling process on the digital signal, and performing a Butterworth low-pass filtering process on the obtained first-level downsampling data to obtain the first-level sampling data; performing a second-level downsampling process on the first-level sampling data, and performing a Chebyshev low-pass filtering process on the obtained second-level downsampling data to obtain the second-level sampling data; performing a third-level downsampling process on the second-level sampling data, and performing an elliptical filtering process on the obtained third-level downsampling data to obtain sampling data; wherein the sampling rates corresponding to the first-level downsampling process, the second-level downsampling process, and the third-level downsampling process show a decreasing trend.
[0100] In one embodiment, the ground processing equipment 202 is used to encode the sampled data to obtain encoded data and send it to the host computer 203, specifically including: performing floating-point encoding processing on the sampled data to obtain encoded data in floating-point format; writing the encoded data into a preset four-level data buffer, transmitting the buffered encoded data in the four-level data buffer to the serial port peripheral through a direct memory access controller, and transmitting it to the host computer 203 through the serial port.
[0101] In one embodiment, the ground processing equipment 202 is used to write the encoded data into a preset four-level data buffer, and transmit the buffered encoded data in the four-level data buffer to the serial port peripheral through a direct memory access controller, specifically including: writing the encoded data into the preset four-level data buffer, and obtaining the write pointer value and the read pointer value in real time during the writing process; judging whether the write pointer value and the read pointer value are the same, if not, directly transmitting the buffer data to the serial port peripheral through the direct memory access controller; otherwise, determining that the four-level data buffer is full, and suspending writing the encoded data into the preset four-level data buffer.
[0102] In one embodiment, the downhole probe device 201 is used to encode the acquired downhole sensor data into a mud pulse signal to obtain a first mud pulse signal, specifically including: collecting downhole sensor data in real time based on the downhole sensor; converting the downhole sensor data into binary data based on a preset encoding rule, and modulating the binary data into a first mud pulse signal by controlling the switching action of the mud pulse generator.
[0103] The above-mentioned signal processing system for measurement while drilling can implement the signal processing method for measurement while drilling of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here.
[0104] like Figure 7 As shown, Figure 7 This is a structural diagram of a computer device provided by the present application; it includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114, and the memory 113 is used to store computer programs.
[0105] In one embodiment of the present application, the processor 111 is configured to implement the signal processing method for measurement while drilling provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113 .
[0106] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.
[0107] Therefore, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the signal processing method for measurement while drilling provided in any of the aforementioned method embodiments.
[0108] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard drive, a read-only memory (ROM), a magnetic disk, or an optical disk, etc. Any physical storage medium capable of storing program code can be non-volatile or volatile.
[0109] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0110] In the several embodiments provided herein, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0111] The steps in the method of the embodiment of the present application can be adjusted in order, combined, and deleted according to actual needs. The units in the system of the embodiment of the present application can be combined, divided, and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into a single unit.
[0112] 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 storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0113] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0114] Obviously, those skilled in the art may make various modifications and variations to this application without departing from the spirit and scope of this application. Thus, as long as these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
[0115] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A signal processing method for measurement while drilling, characterized in that: A signal processing system suitable for measurement while drilling, wherein the signal processing system for measurement while drilling comprises downhole probe equipment, surface processing equipment, and a host computer, and the signal processing method for measurement while drilling comprises: The downhole probe device encodes the acquired downhole sensor data into a mud pulse signal to obtain a first mud pulse signal and sends the first mud pulse signal to the surface processing device; The ground processing equipment converts the first mud pulse signal into a digital signal, performs multi-stage filtering sampling on the digital signal to obtain sampled data, encodes the sampled data to obtain encoded data, and sends the encoded data to the host computer; The host computer decodes the encoded data to obtain geological parameter information.
2. The method according to claim 1, wherein: The surface processing equipment converts the first mud pulse signal into a digital signal, specifically comprising: collecting the first mud pulse signal based on a pressure sensor, and converting the first mud pulse signal into a current signal; The current signal is converted into a voltage signal based on a sampling resistor, the voltage signal is sampled and processed based on an analog-to-digital converter, and the sampled voltage sampling data is converted into the digital signal.
3. The method according to claim 1, wherein The ground processing equipment performs multi-stage filtering and sampling on the digital signal to obtain sampled data, specifically including: The digital signal is subjected to a first-level filtering and sampling process to obtain first-level sampling data, and the first-level sampling data is subjected to a second-level filtering and sampling process to obtain second-level sampling data, and the second-level sampling data is subjected to a third-level filtering and sampling process to obtain sampling data.
4. The method according to claim 3, wherein: The ground processing equipment performs a first-level filtering and sampling process on the digital signal to obtain first-level sampling data, performs a second-level filtering and sampling process on the first-level sampling data to obtain second-level sampling data, and performs a third-level filtering and sampling process on the second-level sampling data to obtain sampling data, specifically including: Performing a first-level downsampling process on the digital signal, and performing a Butterworth low-pass filtering process on the obtained first-level downsampling data to obtain the first-level sampling data; Performing secondary downsampling processing on the primary sampling data, and performing Chebyshev low-pass filtering on the obtained secondary downsampling data to obtain the secondary sampling data; Performing a three-level downsampling process on the two-level sampling data, and performing an elliptical filtering process on the obtained three-level downsampling data to obtain sampling data; The sampling rates corresponding to the first-level downsampling process, the second-level downsampling process, and the third-level downsampling process are in a decreasing trend.
5. The method according to claim 1, wherein: The ground processing equipment encodes the sampled data to obtain encoded data and sends the encoded data to the host computer, specifically including: Performing floating-point encoding on the sampled data to obtain encoded data in a floating-point format; The encoded data is written into a preset four-level data buffer, and the buffered encoded data in the four-level data buffer is transmitted to a serial port peripheral through a direct memory access controller, and then transmitted to the host computer through a serial port.
6. The method according to claim 5, wherein: The ground processing device writes the coded data into a preset four-level data buffer, and transmits the buffered coded data in the four-level data buffer to the serial port peripheral device through a direct memory access controller, specifically including: Writing the encoded data into a preset four-level data buffer, and obtaining the write pointer value and the read pointer value in real time during the writing process; Determine whether the write pointer value and the read pointer value are the same; if not, transmit the buffer data directly to the serial port peripheral through the direct memory access controller; otherwise, determine that the fourth-level data buffer is full, and suspend writing the encoded data into the preset fourth-level data buffer.
7. The method according to claim 1, wherein: The downhole probe device encodes the acquired downhole sensor data into a mud pulse signal to obtain a first mud pulse signal, specifically including: Real-time collection of downhole sensor data based on downhole sensors; Based on a preset coding rule, the downhole sensor data is converted into binary data, and the binary data is modulated into a first mud pulse signal by controlling the switching action of the mud pulse generator.
8. A signal processing system for measurement while drilling, characterized in that: Including downhole probe equipment, ground processing equipment and host computer; Wherein, the downhole probe equipment is connected to the ground processing equipment, and the ground processing equipment is connected to the host computer.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Signal transmission repeater of electromagnetic measurement-while-drilling system
CN103731191A
Transmission-while-drilling coding method and device and storage medium
CN116446860A
Decoding device and method for transmission while drilling pulse signal
CN116771323A
Near-bit formation resistivity imaging system and method
CN119412022A
High Speed Telemetry Signal Processing
US20170362933A1