Ground testing device for logging instrument
By designing a ground test device for well logging instruments, using microcontrollers and circuits to transmit and decode differential Manchester code signals, the problem of limited transmission distance of Manchester codes is solved, the ground detection is convenient and efficient, and the cost of use of expensive instruments is saved. .
Patent Information
- Application Number
- CN202310715846.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-15
- Publication Date
- 2024-12-17
AI Technical Summary
When existing logging instruments are inspected on the ground, the Manchester code transmission distance is limited, and the 3514 remote transmission communication instrument is expensive and not suitable for long-term or frequent use, which is easy to become a source of interference and affect the test results.
A ground test device for logging instruments was designed, including a microcontroller, command circuit and reception and decoding circuit. The power amplification is performed through differential Manchester code signals, and the feedback data is independently decoded by multiple sub-circuits to realize the classification detection of the target logging instruments. , send the data directly to the ground for testing and testing, and avoid the transfer of the 3514 remote communication instrument and the ECLIPS5700 ground system.
It realizes lossless transmission of data of more than 10 meters, saves the purchase cost of 3514 underground remote transmission communication instruments and ECLIPS5700 ground system, improves signal transmission and processing capabilities, and makes testing more convenient and efficient.
Smart Images

Figure CN119148251A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of logging while drilling equipment in oil drilling, and in particular to a ground testing device for a logging instrument. Background Art
[0002] With the deepening and popularization of drilling exploration, the demand for logging instruments has increased greatly, and more and more logging companies have chosen to purchase logging instruments. Among them, the 5700 series of logging instruments of Baker Atlas is currently the most widely used logging instrument. According to the logging principle of this set of instruments, many domestic companies have also successively developed a number of logging series, such as the Shengli 6000 series and CPL's EILog (Express and Image Logging System) series, with large-scale and integrated complete sets of logging equipment as the prominent features, forming a virtuous cycle of technology and market for research, development and service teams.
[0003] However, the above instruments have some inconveniences when used for ground testing. Specifically, in the ECLIPS5700 logging system, the command bus and data bus of the downhole instrument are both transmitted using standard Manchester code. When testing on the ground, they must be transferred through the 3514 telemetry communication instrument of Baker Atlas and tested using the ECLIPS5700 ground system. After connecting to the 3514 telemetry communication instrument, although the problem of long-distance communication is solved, other problems are brought about. First, if the 3514 telemetry communication instrument itself fails or a measurement error occurs, it will become an introduced interference source and seriously affect the ground test, or even cause the test to fail. In addition, the 3514 telemetry communication instrument and the ECLIPS5700 ground system are expensive as part of the purchased instruments and are not suitable for long-term or frequent use as test instruments on the ground.
[0004] The standard Manchester code transmits a binary TTL level signal. Theoretically, the transmission distance of the TTL level signal can reach 15 meters, but the transmission capacity of the TTL chip is extremely low and does not support signal transmission at a distance of meters. In addition, due to the logging requirements, more downhole instruments need to be connected in series for multi-functional detection, so the amount of data transmitted is large and the transmission baud rate is high. The high baud rate further leads to a lower transmission distance and a decrease in signal quality.
[0005] In view of the above inconveniences and defects, many existing technologies have proposed methods to improve the transmission capacity of Manchester codes. However, none of them mentions the ground detection of logging instruments, and there is no solution or implementation method for how to effectively read the small signal board-based Manchester codes emitted by these logging instruments in an indoor test environment.
[0006] In view of the problems in the prior art, the present invention provides a ground testing device for a well logging instrument. Summary of the invention
[0007] In order to solve the problems in the prior art, the present invention provides a ground testing device for a well logging instrument, the device comprising:
[0008] A single chip microcomputer, which is used to send an instrument command string according to a target logging instrument;
[0009] A command circuit connected to the single chip microcomputer, used for encoding the instrument command string and transmitting it to the target logging instrument after power amplification;
[0010] The receiving and decoding circuit is connected to the target logging instrument and is used to decode the feedback data of the target logging instrument through a plurality of independently arranged sub-circuits and transmit the decoded data to the single chip microcomputer.
[0011] According to one embodiment of the present invention, the single chip microcomputer includes: a programmable counter array and a programmable oscillator, wherein the programmable counter array includes a counter / timer and a plurality of capture / comparison circuits.
[0012] According to one embodiment of the present invention, the target logging instrument includes any one of the following items or any combination of items: 1515 high-resolution induction instrument, 1022 STAR acoustic and electrical imaging instrument, XMACII cross-dipole acoustic wave instrument, 1329 natural gamma ray spectrometer instrument, 2446 compensated neutron instrument, 2228 lithology density instrument, 3218 MREX nuclear magnetic resonance instrument, 1680 digital acoustic wave instrument, 4401 azimuth short section instrument and 3516 full slam adapter.
[0013] According to one embodiment of the present invention, the command circuit comprises:
[0014] An encoder, connected to the single-chip microcomputer, for encoding the instrument command string into a differential Manchester code signal;
[0015] A driving circuit connected to the encoder and used to amplify the power of the differential Manchester code signal to obtain a differential Manchester code signal that can drive a transformer;
[0016] The command sending circuit is connected to the driving circuit and is used to encode the instrument command string in the form of Manchester code and transmit it to the target logging instrument according to the differential Manchester code signal that can drive the transformer.
[0017] According to one embodiment of the present invention, the command sending circuit includes:
[0018] a first diode, a cathode of which is connected to the first output terminal of the driving circuit;
[0019] a first resistor, a first end of which is connected to the anode of the first diode;
[0020] a transformer, wherein one end of the primary coil is connected to the second end of the first resistor;
[0021] a second diode, a cathode of which is connected to the second output terminal of the driving circuit;
[0022] a second resistor, a first end of which is connected to the anode of the second diode, and a second end of which is connected to the other end of the primary coil of the transformer;
[0023] A first power source is connected to the primary coil of the transformer.
[0024] According to one embodiment of the present invention, the feedback data separation is achieved through multiple sub-circuits, so that the target logging instrument in the entire downhole instrument string can be classified or individually detected, wherein the receiving and decoding circuit includes three sub-circuits, wherein the first sub-circuit receives mode 2 data of the target logging instrument, the second sub-circuit receives mode 5 data of the target logging instrument, and the third sub-circuit receives mode 7 data of the target logging instrument.
[0025] According to one embodiment of the present invention, the subcircuit comprises:
[0026] A receiving circuit connected to the target logging instrument and configured to receive the feedback data;
[0027] A decoding circuit is connected to the receiving circuit and is used for decoding the feedback data into a standard Manchester code signal and transmitting the signal to the single chip microcomputer.
[0028] According to one embodiment of the present invention, the receiving circuit comprises:
[0029] a third resistor, a first end of which is connected to one end of the target well logging instrument, and a second end of which is connected to the other end of the target well logging instrument;
[0030] a fourth resistor, a first end of which is connected to the second end of the third resistor;
[0031] an optical coupler, a first input end of which is connected to the first end of the third resistor, and a second input end of which is connected to the second end of the fourth resistor;
[0032] A fifth resistor has a first end connected to the output end of the optical coupler, and a second end connected to the second power supply.
[0033] According to one embodiment of the present invention, the device comprises an adjustable AC power supply and a DC power supply, wherein the adjustable AC power supply supplies power to a target logging instrument, and the DC power supply supplies power to electrical equipment within the device.
[0034] According to one embodiment of the present invention, the device comprises an instrument interface for connecting to a target logging instrument.
[0035] According to another aspect of the present invention, there is also provided a method for ground testing of a well logging instrument, which is performed by the device as described in any one of the above items, and the method comprises the following steps:
[0036] Sending an instrument command string according to a target logging instrument by means of the single chip microcomputer;
[0037] The command circuit connected to the single chip microcomputer encodes the instrument command string, amplifies the power and transmits it to the target logging instrument;
[0038] The receiving and decoding circuit connected to the target logging instrument decodes the feedback data of the target logging instrument through a plurality of independently arranged sub-circuits, and transmits the decoded data to the single chip microcomputer.
[0039] According to one embodiment of the present invention, the method comprises the following steps: based on a preset communication protocol, decoding the decoded feedback data by an external device connected to the single-chip microcomputer, wherein the preset communication protocol is:
[0040] Header + instrument address + data length + data + checksum + end character
[0041] The type of the target logging instrument is determined according to the instrument address, and the end of the data frame is determined according to the data length.
[0042] According to another aspect of the present invention, a storage medium is provided, which contains a series of instructions for executing the method steps as described in any one of the above.
[0043] The present invention provides a ground testing device for logging instruments, which can directly send data to the ground for testing when testing the instrument, without having to transfer through a 3514 downhole telemetry communication instrument and then test through an ECLIPS5700 ground system. The present invention can greatly save the purchase cost of the 3514 downhole telemetry communication instrument and the ECLIPS5700 ground system, is faster and more convenient, and improves the transmission and processing capabilities of signals.
[0044] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0046] Figure 1 Shows a structural block diagram of a ground testing device for a well logging instrument according to an embodiment of the present invention;
[0047] Figure 2 Shows a block diagram of a single chip microcomputer and a command circuit structure according to an embodiment of the present invention;
[0048] Figure 3 Shows a receiving and decoding circuit and a single-chip microcomputer structure block diagram according to an embodiment of the present invention;
[0049] Figure 4 A flow chart of a ground testing method for a well logging instrument according to an embodiment of the present invention is shown;
[0050] Figure 5 A flow chart of a surface testing method for a well logging instrument according to another embodiment of the present invention is shown.
[0051] In the accompanying drawings, the same reference numerals are used for the same components. In addition, the accompanying drawings are not drawn according to the actual scale.
[0052] The meanings of the various reference numerals in the accompanying drawings are as follows: 101-single chip microcomputer; 102-encoder; 103-driving circuit; 104-first decoding circuit; 105-second decoding circuit; 106-third decoding circuit; 107-command sending circuit; 108-first receiving circuit; 109-second receiving circuit; 110-third receiving circuit; 111-adjustable AC power supply and DC power supply; 112-instrument interface; 113-external device. DETAILED DESCRIPTION
[0053] To make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0054] The existing technology (Design of polarity compatible coding and decoding system in long cable transmission, Automation Technology and Application, 2013-09-25) designed a transmission system composed of Manchester coding, and used FPGA devices to design codecs to achieve long cable transmission of several thousand meters and ensure the transmission quality of the signal. The coding and decoding system, coding and decoding unit and transformer mentioned in it are all used to improve the communication capability of the line communication module RS485, which only adds a synchronization head and does not essentially change the structure of Manchester data coding.
[0055] The prior art (Research on the application of Manchester coding technology in well logging data transmission, Computer and Digital Engineering, 2009-09-20), the prior art (Manchester code multi-channel data transmission system, Journal of Xi'an Institute of Technology, 2003-12-30), the prior art (using C8051F005 to implement Manchester code encoding and decoding, Journal of Xinxiang University (Natural Science Edition), 2011-02-15), the main purpose of the above prior art is consistent with the prior art (Design of polarity compatible encoding and decoding system in long cable transmission, Automation Technology and Application, 2013-09-25), and it is still to solve the problem of several thousand meters long cable transmission.
[0056] The existing technology (FPGA and DSP-based logging telemetry signal decoding technology, Progress in Geophysics, 2006-02-28) mentioned that the digital logging downhole instrument adopts BPSK signal encoding for transmission, and the telemetry transmission rate is 100kbps, which is not the standard Manchester encoding adopted by the traditional 5700 series logging downhole instruments. It solves the problem of using FPGA and DSP to realize logging telemetry signal decoding in its self-made instrument.
[0057] The prior art (CN112491763A) only mentions improving the accuracy and efficiency of decoding, and does not mention ground detection of downhole logging instruments.
[0058] The above prior art does not mention the ground detection of logging downhole instruments, and there is no solution and implementation means for how to effectively read the small signal board-based Manchester code emitted by these downhole instruments in an indoor test environment. Therefore, the present invention provides a ground testing device for logging instruments, which is used to completely replace the 3514 telemetry communication instrument and the ECLIPS5700 ground system, and can transmit losslessly for more than 10 meters to complete the ground detection of logging downhole instruments.
[0059] Figure 1 The structure block diagram of a ground test device for a well logging instrument according to an embodiment of the present invention is shown. A ground test device for a well logging instrument 100 can complete ground tests of various downhole instruments for well logging, can achieve lossless transmission of data over 10 meters, directly send data to the ground for detection tests, and can also display ground test results through an external device 113, which includes: a single chip microcomputer 101, a command circuit, and a receiving and decoding circuit.
[0060] The single chip computer 101 is used to send an instrument command string according to the target logging instrument. In one embodiment, the target logging instrument includes any one of the following items or any combination of items: 1515 high-resolution induction instrument, 1022 STAR acoustic and electrical imaging instrument, XMACII cross-dipole acoustic wave instrument, 1329 natural gamma ray spectrometer, 2446 compensated neutron instrument, 2228 lithology density instrument, 3218 MREX nuclear magnetic resonance instrument, 1680 digital acoustic wave instrument, 4401 azimuth short sub instrument and 3516 full slam adapter, etc.
[0061] In one embodiment, the microcontroller 101 includes: a programmable counter array and a programmable oscillator, wherein the programmable counter array includes a counter / timer and multiple capture / compare circuits. Specifically, the microcontroller 101 contains a programmable counter array (PCA) that provides enhanced timer functions. The programmable counter array includes a dedicated 16-bit counter / timer and six 16-bit capture / compare circuits, each of which has its own I / O line (CEXn). These I / O lines are connected to the port I / O through a cross switch when enabled. The counter / timer is driven by a programmable time base signal, which can be selected from seven clock sources: system clock, system clock / 4, system clock / 12, external oscillator clock / 8, smaRTClock / 8, timer 0 overflow, or an external clock signal on the ECI input pin. Each capture / compare circuit has six working modes: edge-triggered capture, software timer, high-speed output, frequency output, 8-11-bit PWM, and 16-bit PWM. The working mode of each capture / compare circuit can be configured independently.
[0062] The clock system of the single-chip computer 101 selects an internally calibrated programmable oscillator with a frequency of 24.5MHz. The time base signal of the counter / timer in the programmable counter array is selected as the system clock, and one of the capture / compare circuits is set to work in edge-triggered capture mode, and CEXn is connected to a port pin of the single-chip computer 101 through a cross switch. The feedback data from the target logging instrument is shaped and amplified and then connected to the CEXn pin of the single-chip computer 101. Each change in the level of the feedback data causes the capture / compare circuit to capture, and the capture / compare flag CCFn is set to "1", and the value of the counter / timer in the programmable counter array is loaded into the capture / compare register.
[0063] The command circuit is connected to the single chip microcomputer 101 and is used to encode the instrument command string and transmit it to the target logging instrument after power amplification. Figure 1As shown, the command circuit includes: an encoder 102, a drive circuit 103 and a command sending circuit 107. Specifically, the encoder 102 is connected to the single-chip microcomputer 101, and is used to encode the instrument command string into a differential Manchester code signal. The drive circuit 103 is connected to the encoder 102, and is used to power amplify the differential Manchester code signal to obtain a differential Manchester code signal that can drive a transformer. The command sending circuit 107 is connected to the drive circuit 103, and is used to encode the instrument command string in the form of Manchester code and transmit it to the target logging instrument according to the differential Manchester code signal that can drive the transformer.
[0064] The receiving and decoding circuit is connected to the target logging instrument, and is used to decode the feedback data of the target logging instrument through multiple independent (discrete) sub-circuits, and transmit the decoded data to the single chip microcomputer 101. In one embodiment, Figure 1 As shown, the receiving and decoding circuit includes three sub-circuits, wherein the first sub-circuit receives the mode 2 (M2) data of the target logging instrument, the second sub-circuit receives the mode 5 (M5) data of the target logging instrument, and the third sub-circuit receives the mode 7 (M7) data of the target logging instrument.
[0065] The first subcircuit receives small amounts of lateral, compensated neutron or azimuthal short-section data, and the second and third subcircuits receive large amounts of digital acoustic wave, high-resolution induction, and lithology density data. Specifically, 1515 high-resolution induction (M5 or M7), 1022 STAR acoustic and electrical imaging (M2+M5+M7), XMACII cross-dipole acoustic wave (M5), 1329 natural gamma ray spectrum (M2+M5), 2446 compensated neutron (M2), 2228 lithology density (M2+M5), 3218 MREX nuclear magnetic resonance (M5), 1680 digital acoustic wave (M5), 4401 azimuthal short section (M2), and 3516 full-slam adapter (M2). Through multiple subcircuits, efficient separation of feedback data can be achieved, and the target logging instruments in the entire downhole instrument string can be classified or individually detected, which is helpful for rapid data identification and judgment during instrument detection.
[0066] In one embodiment, the subcircuit includes a receiving circuit and a decoding circuit. The receiving circuit is connected to the target logging instrument and is used to receive feedback data. The decoding circuit is connected to the receiving circuit and is used to decode the feedback data into a standard Manchester code signal and transmit it to the single chip microcomputer 101.
[0067] In one embodiment, Figure 1 As shown, the first decoding circuit 104 and the first receiving circuit 108 constitute a first sub-circuit, the second decoding circuit 105 and the second receiving circuit 109 constitute a second sub-circuit, and the third decoding circuit 106 and the third receiving circuit 110 constitute a third sub-circuit.
[0068] In one embodiment, Figure 1 As shown, a well logging instrument ground test device includes an adjustable AC power supply and a DC power supply 111, wherein the adjustable AC power supply supplies power to the target well logging instrument, and the DC power supply supplies power to the electrical equipment in the device. In one embodiment, the supply voltage of the adjustable AC power supply is 0 to 260V. In addition, the power amplitude of the adjustable AC power supply is adjusted according to the number and type of instrument strings actually used, and the present invention does not limit the power amplitude of the adjustable AC power supply.
[0069] In one embodiment, Figure 1 As shown, a surface testing device for a well logging instrument includes an instrument interface 112 for connecting to a target well logging instrument. In one embodiment, all well logging instruments that upload data in a standard Manchester encoding format can be connected to the instrument interface 112 for testing.
[0070] In one embodiment, a well logging instrument surface test device is connected to an external device 113. After receiving the data, the single chip microcomputer 101 transmits the data to the external device 113 through its internal communication circuit in a certain communication format (such as serial communication) to display the test results. In one embodiment, the external device 113 is a host computer.
[0071] like Figure 1 As shown, during indoor testing, the downhole instruments of the ECLIPS5700 logging system and similar logging systems are connected to the instrument interface 112, and the single-chip microcomputer 101 sends the instrument command string to the encoder 102 according to the selected instrument string, completes Manchester encoding in the encoder 102, and sends it to the drive circuit 103, performs power amplification in the drive circuit 103, sends it to the command sending circuit 107, and sends it to the command bus through the sending transformer of the command sending circuit 107.
[0072] There are three receiving buses for receiving feedback data, namely the first receiving bus, the second receiving bus and the third receiving bus. Small amounts of data are transmitted through the first receiving bus, such as: 1239 dual lateral, 2446 compensated neutron, 4401 azimuth short section, etc. Large amounts of data are transmitted through the second receiving bus or the third receiving bus data, such as: 1680 digital acoustic wave, 1515 high-resolution induction, 2228 lithology density, etc.
[0073] The single chip microcomputer 101 distributes the data string on the receiving bus to different receiving circuits according to the instrument command string. After the receiving circuit and the decoding circuit, the standard Manchester coded data used by the downhole instrument is converted into a data packet with a specific format and saved in the data buffer of the single chip microcomputer 101.
[0074] The downhole instrument sends the data string on the receiving bus to different receiving circuits according to the instrument command string on the command bus, that is, transmits a small amount of data such as: 1239 dual lateral, 2446 compensated neutron, 4401 azimuth short section, etc. to the first receiving circuit 108, which is picked up by the receiving transformer of the first receiving circuit 108, and is sent to the first decoding circuit 104 after filtering, and the standard Manchester code of the downhole instrument is decoded and sent to the data buffer of the single-chip computer 101.
[0075] If the data string on the receiving bus is a large amount of data, for example: 1680 digital sound waves, 1515 high-resolution induction, 2228 rock density, etc., it is transmitted to the second or third receiving bus, picked up by the corresponding receiving transformer of the second receiving circuit 109 or the third receiving circuit 110, and sent to the second decoding circuit 105 or the third decoding circuit 106 after filtering, and the standard Manchester code of the downhole instrument is decoded and sent to the data buffer of the single-chip microcomputer 101.
[0076] Figure 2 The structure block diagram of a single chip microcomputer and a command circuit according to an embodiment of the present invention is shown.
[0077] In one embodiment, the single chip microcomputer 101, the encoder 102, and the driving circuit 103 are each implemented by a single chip, and the command sending circuit 107 is composed of a transformer T1, a diode, and a resistance element.
[0078] like Figure 2 As shown, the command sending circuit 107 includes: a first diode D1, a first resistor R1, a transformer T1, a second diode D2, a second resistor R2, and a first power supply VCC1. Among them, the cathode of the first diode D1 is connected to the first output end of the driving circuit 103. The first end of the first resistor R1 is connected to the anode of the first diode D1. One end of the primary coil of the transformer T1 is connected to the second end of the first resistor R1. The cathode of the second diode D2 is connected to the second output end of the driving circuit 103. The first end of the second resistor R2 is connected to the anode of the second diode D2, and the second end is connected to the other end of the primary coil of the transformer T1. The first power supply VCC1 is connected to the primary coil of the transformer T1.
[0079] like Figure 2 As shown, there are four communication lines between the single chip microcomputer 101 and the encoder 102, which are SDI encoding data input signal, ESC encoding clock signal, EE encoder enable signal, and SD encoder ready signal.
[0080] The single-chip computer 101 first sets the EE encoder enable signal to 1. When the encoder 102 detects that EE is at a high level at the falling edge of ESC, it sets SD to 1. After the single-chip computer 101 detects that SD is at a high level, it outputs a serial command code at the SDI encoding data input signal port at the falling edge of the ESC encoding clock signal. The encoder 102 converts the original code signal of the SDI input into differential Manchester code signals BZO and BIO. BZO and BIO are power-amplified in the driving circuit 103 and become differential Manchester code signals OA and OB that can drive the transformer. When OA is at a low level, the second diode D of the command sending circuit 107 2 is turned on, the positive electrode of the first power supply VCC1 forms a path with the power ground through the primary coil of the transformer T1, the second resistor R2, the second diode D2, generates current, and generates a signal in the secondary coil of the transformer T1. Conversely, when the output OB of the drive circuit 103 is at a low level, the first diode D1 of the command sending circuit 107 is turned on, the first power supply VCC1 forms a path with the power ground through the primary coil of the transformer T1, the first resistor R1, the first diode D1, generates current, and generates a signal in the secondary coil of the transformer T1. In this way, the original code of the instrument command string output by the single-chip microcomputer 101 is sent out through the transformer T1 in the form of Manchester code.
[0081] Figure 3 The receiving and decoding circuit and the single chip microcomputer structure block diagram according to an embodiment of the present invention are shown.
[0082] In one embodiment, the first decoding circuit 104 and the encoder 102 are implemented on the same chip, and the first data receiving circuit 108 is composed of an optocoupler and a resistor.
[0083] like Figure 3 As shown, the first data receiving circuit 108 includes: a third resistor R3, a fourth resistor R4, an optical coupler U1, a fifth resistor R5, and a second power supply VCC2. Among them, the first end of the third resistor R3 is connected to one end of the target logging instrument, and the second end is connected to the other end of the target logging instrument. The first end of the fourth resistor R4 is connected to the second end of the third resistor R3. The first input end of the optical coupler U1 is connected to the first end of the third resistor R3, and the second input end is connected to the second end of the fourth resistor R4. The first end of the fifth resistor R5 is connected to the output end of the optical coupler U1, and the second end is connected to the second power supply VCC2.
[0084] exist Figure 3In the process, the feedback data from the target logging instrument is isolated by the photosynthetic coupler U1 of the first data receiving circuit 108, and the output UDI signal enters the first decoding circuit 104. After identification, a valid synchronization pulse is detected and TD is set to 1. When the single-chip microcomputer 101 detects that TD is at a high level, it samples the SDO level at the rising edge of DSC. When the first decoding circuit 104 receives a valid data word, it sets VW to 1. At this time, the single-chip microcomputer 101 stores the received data in the memory.
[0085] In one embodiment, R3 is an impedance matching resistor, R4 is used for current limiting and filtering interference signals, and R5 is a pull-up resistor.
[0086] In one embodiment, Figure 3 The first receiving circuit 108, the first decoding circuit 104 and the single chip microcomputer 101 constitute a first data receiving processing path. Figure 1 The second receiving circuit 109, the second decoding circuit 105 and the single chip microcomputer 101 in the embodiment constitute a second data receiving processing path, and its circuit block diagram is similar to Figure 3 The third receiving circuit 110, the third decoding circuit 106 and the single chip microcomputer 101 constitute a third data receiving processing path, and the circuit block diagram is also similar to Figure 3 similar.
[0087] The present invention provides a ground testing device for well logging instruments. In the process of ground testing of well logging instruments, the device can completely replace the 3514 telemetry communication instrument and the ECLIPS5700 ground system, and can transmit losslessly for more than 10 meters, thereby completing all ground testing functions of the well logging instruments. The device is convenient and efficient, and saves a huge amount of cost for imported instruments.
[0088] The existing technology for solving the problem of thousands of meters of long cable transmission is used for logging instrument downhole operations. Since the drilling depth is usually thousands of meters, or even more than 5,000 meters, it is necessary to push the logging cable deep into the well for thousands of meters to carry out logging operations. The present invention is different from the existing technology for solving the problem of thousands of meters of long cable transmission. The present invention directly sends the logging instrument to the ground for inspection and testing, without having to transfer through the 3514 downhole telemetry communication instrument and then test through the ECLIPS5700 ground system. Therefore, the purpose of indoor testing can be achieved by simply increasing the transmission distance to about 10 meters, making the test more convenient and improving the signal transmission and processing capabilities.
[0089] Figure 4 A flow chart of a surface testing method for a well logging instrument according to an embodiment of the present invention is shown.
[0090] like Figure 4 As shown, in step S401, the single chip microcomputer 101 sends an instrument command string according to the target logging instrument.
[0091] In one embodiment, step S401 includes: the external device 113 communicates with the single-chip microcomputer 101 through a certain communication port (serial port, USB or network), and firstly, the communication parameters must be set and a connection must be established. For example, when using a serial port, the serial port number, baud rate, number of data bits, parity check, stop bit, etc. used to communicate with the single-chip microcomputer 101 are set through the software interface of the external device 113, and the port used is opened. When using a network, the IP address of the external device 113 must be set to be in the same network segment as the single-chip microcomputer 101, and the IP address must be used to establish a connection with the single-chip microcomputer 101.
[0092] In one embodiment, step S401 includes: the software of the external device 113 supports data collection of multiple logging instruments. The instrument model to be collected is selected through the software interface, and the software performs data processing and display initialization according to the selected instrument, such as setting the receiving data buffer, decoding method, data display interface, etc.
[0093] In one embodiment, step S401 includes: the external device 113 sends the selected instrument model and initial acquisition parameters to the single-chip microcomputer 101, and the single-chip microcomputer 101 uses these parameters to start data acquisition of the instrument.
[0094] In one embodiment, step S401 includes: during the acquisition process, the acquisition parameters can be modified through the software interface of the external device 113 and sent to the single-chip microcomputer 101, and the single-chip microcomputer 101 uses the new parameters to control the instrument acquisition.
[0095] like Figure 4 As shown, in step S402, the command string of the instrument is encoded and power-amplified by the command circuit connected to the single-chip microcomputer 101 and then transmitted to the target logging instrument.
[0096] like Figure 4 As shown, in step S403, the receiving and decoding circuit connected to the target logging instrument decodes the feedback data of the target logging instrument through a plurality of independently arranged sub-circuits, and transmits the decoded data to the single chip microcomputer 101.
[0097] In one embodiment, step S403 includes: the single chip computer 101 sends the received instrument data to the external device 113 through the communication interface. The software of the external device 113 includes two threads (a main thread and a receiving thread), the receiving thread stores the received instrument data frame into a buffer, and the main thread takes out one frame of instrument data from the buffer each time for decompilation processing and displays it in the form of numerical values, curves, waveforms, etc.
[0098] In one embodiment, step S403 includes: sending a stop acquisition command to the single-chip microcomputer 101 through the software of the external device 113, so that the single-chip microcomputer 101 stops data acquisition of the instrument.
[0099] In one embodiment, based on a preset communication protocol, the decoded feedback data is decoded by an external device 113 connected to the single-chip computer 101, wherein the preset communication protocol is:
[0100] Header + instrument address + data length + data + checksum + end character
[0101] The type of target logging instrument is determined based on the instrument address, and the end of the data frame is determined based on the data length.
[0102] Figure 5 A flow chart of a surface testing method for a well logging instrument according to another embodiment of the present invention is shown.
[0103] like Figure 5 As shown, the main thread contains the following steps:
[0104] In step S11, select the communication mode (serial port, USB, Bluetooth or network), set the communication parameters (serial port number, baud rate, number of data bits, parity check, stop bit, etc. used for communication, open the port used), and establish a connection. Specifically, select the communication mode and communication parameters with the single-chip microcomputer 101 through the software interface of the external device 113. Further, when selecting the network, set the IP address of the external device 113 to the same network segment as the IP address of the single-chip microcomputer 101; when selecting the serial port, set the serial port number, baud rate, number of data bits, parity check, stop bit, etc. used for communication with the single-chip microcomputer 101; when selecting Bluetooth, the Bluetooth device of the external device 113 and the Bluetooth device of the test device must be successfully paired during the first communication, and no parameters need to be configured; when selecting USB, no parameter configuration is required.
[0105] When selecting network communication, a "connection" request needs to be sent, and communication can only be carried out when both parties are successfully connected; when selecting serial port or Bluetooth, the serial port or Bluetooth needs to be turned on; when selecting USB, hot plugging is supported, and communication can be carried out after the external device 113 detects the USB device.
[0106] In step S12, the downhole instrument is selected. Specifically, the instrument model, lateral, acoustic wave, and neutron density are selected through the software interface of the external device 113. Furthermore, different logging instruments have different working states, respond to different commands and parameters, and the output data size, structure and mode are also different, and the data display methods are different. For example: before the digital acoustic wave instrument works, it is necessary to select the working mode, set the wave train gain, delay time, window width, sampling interval and other parameters, and display the acoustic wave train and acoustic wave time difference values; the lithology density instrument needs to respond to the "open arm" and "close arm" commands, and it is necessary to perform "automatic gain" or "manual gain" and "high pressure gain" settings to display the long and short source distance count rate values and the received gamma energy spectrum. Selecting an instrument is to determine the data size, structure and mode, set different working parameters and commands, and determine the display method of the instrument data.
[0107] In step S13, the data processing mode is set and the parameters are initialized. Specifically, the software of the external device 113 sets the data decoding mode and engineering value calculation formula for the data of different instruments according to the selected instrument type. For example: for a dual lateral instrument, the raw data received are deep current, deep voltage and shallow current, shallow voltage, which need to be converted into resistivity for display, and the calculation formula is: R = k × U / I. For a digital acoustic wave instrument, what is received is wave train data. First, the first wave must be found and the position of the first wave must be recorded, for example: t1, t2, t3, t4, and then the acoustic wave time difference is calculated using the formula: t14 = (t4-t1) / s14, where s14 is the distance between the receiving crystals 1 and 4.
[0108] In step S14, the display mode is set and the parameters are initialized. Specifically, different instruments have different data structures and need to display different contents. The software of the external device 113 needs to set the command and parameter window and the data display mode according to the selected instrument type. For example, a digital acoustic wave instrument needs a command and parameter download window, a wave train display window, a curve display and an acoustic wave time difference display window; a dual lateral instrument needs a command and parameter download window, a scale data window, a curve display and current, voltage and resistivity display, etc.
[0109] In step S15, the receiving thread message is queried. Specifically, the main thread queries whether the receiving thread message is received.
[0110] In step S16, frame data is read. Specifically, if the main thread receives a message from the receiving thread indicating that data in the buffer has been updated, the main thread reads the data frame from the buffer for further processing.
[0111] In step S17, the data is decoded. Specifically, the communication protocol between the single-chip microcomputer 101 and the external device 113 is: header (1 byte) + instrument address (1 byte) + data length (2 bytes) + data (n bytes) + checksum (1 byte) + end mark (1 byte). The external device 113 determines the type of instrument according to the received instrument address and determines the end of the data frame according to the data length.
[0112] In step S18, data is displayed. Specifically, after the external device 113 receives the data and verifies that it is correct, various data can be sent to the corresponding application for processing, calculation and display, for example: digital sound wave instrument, data is used for wave train display, the first wave is found according to the wave train, the first wave position is recorded and the sound wave time difference is calculated according to the formula for display.
[0113] In step S19, whether to stop acquisition. Specifically, the main thread cyclically queries whether the user has issued a "stop acquisition" command. After receiving the "stop acquisition" command, the receiving thread and data processing and display work are stopped, and the stop acquisition command is sent to the single-chip microcomputer 101. The single-chip microcomputer 101 stops sending the "acquisition command" and "send data command" to the target logging instrument. If the "stop acquisition" command issued by the user is not received, it returns to step S15.
[0114] like Figure 5 As shown, the receiving thread includes the following steps:
[0115] In step S21 , data of multiple sub-circuits are received. Specifically, the external device 113 receives feedback data of multiple sub-circuits transmitted by the single chip microcomputer 101 .
[0116] In step S22, the data is stored in a buffer.
[0117] In step S23, whether a frame is full. Specifically, after receiving the data, the receiving thread stores the data in the buffer, and uses the data length to determine whether a frame of data is finished according to the data communication protocol between the external device 113 and the single-chip computer 101. If it is finished, the 8-bit cumulative sum of the received data is compared with the checksum byte. If they are consistent, it means that the received data is correct, and then enter step S24 to send a message to the main thread. If it is not full, return to step S21.
[0118] In step S24, a message is sent to the main thread.
[0119] In step S25, the buffer pointer is initialized.
[0120] The testing method provided by the present invention can completely get rid of the dependence on 3514 telemetry communication instruments and ECLIPS5700 ground system, and conveniently and efficiently complete all functions of ground testing of downhole instruments of ECLIPS5700 logging system and similar logging systems.
[0121] The well logging instrument surface testing device provided by the present invention can also be used with a computer-readable storage medium, on which a computer program is stored, and the computer program is executed to run a well logging instrument surface testing method. The computer program can run computer instructions, and the computer instructions include computer program code, which can be in source code form, object code form, executable file or some intermediate form.
[0122] Computer-readable storage media may include: any entity or device that can carry computer program code, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0123] It should be noted that the content contained in computer-readable storage media can be appropriately increased or decreased based on the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, based on legislation and patent practices, computer-readable storage media do not include electrical carrier signals and telecommunications signals.
[0124] In summary, the present invention provides a ground testing device for logging instruments, which can directly send data to the ground for testing when testing the instrument, without having to transfer through the 3514 downhole telemetry communication instrument and then test through the ECLIPS5700 ground system. The present invention can greatly save the purchase cost of the 3514 downhole telemetry communication instrument and the ECLIPS5700 ground system, is faster and more convenient, and improves the signal transmission and processing capabilities.
[0125] It should be understood that the embodiments disclosed in the present invention are not limited to the specific structures, processing steps or materials disclosed herein, but should be extended to equivalent substitutions of these features understood by ordinary technicians in the relevant field. It should also be understood that the terms used herein are only used for the purpose of describing specific embodiments and are not meant to be limiting.
[0126] In the description of the present invention, unless otherwise specified, "plurality" means two or more than two; the orientations or positional relationships indicated by the terms "upper", "lower", "left", "right", "inner", "outer", "front end", "rear end", "head", "tail", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0127] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0128] The "one embodiment" or "embodiment" mentioned in the specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment" or "embodiment" appearing in various places throughout the specification do not necessarily refer to the same embodiment.
[0129] The embodiments of the present invention are given for the purpose of illustration and description, and are not intended to be exhaustive or to limit the invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.
[0130] Although the embodiments disclosed in the present invention are as above, the contents described are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A surface testing device for a well logging instrument, characterized in that: The device comprises: A single chip microcomputer, which is used to send an instrument command string according to a target logging instrument; A command circuit connected to the single chip microcomputer, used for encoding the instrument command string and transmitting it to the target logging instrument after power amplification; The receiving and decoding circuit is connected to the target logging instrument and is used to decode the feedback data of the target logging instrument through a plurality of independently arranged sub-circuits and transmit the decoded data to the single chip microcomputer.
2. A surface testing device for a well logging instrument as claimed in claim 1, characterized in that: The single chip microcomputer comprises: a programmable counter array and a programmable oscillator, wherein the programmable counter array comprises a counter / timer and a plurality of capture / comparison circuits.
3. A surface testing device for a well logging instrument as claimed in claim 1, characterized in that: The target logging instrument includes any one of the following or any combination of the following: 1515 high-resolution induction instrument, 1022 STAR acoustic and electrical imaging instrument, XMACII cross-dipole acoustic wave instrument, 1329 natural gamma ray spectrometer instrument, 2446 compensated neutron instrument, 2228 lithology density instrument, 3218 MREX nuclear magnetic resonance instrument, 1680 digital acoustic wave instrument, 4401 azimuth short section instrument and 3516 full slam adapter.
4. A surface testing device for a well logging instrument according to any one of claims 1 to 3, characterized in that: The command circuit comprises: An encoder, connected to the single-chip microcomputer, for encoding the instrument command string into a differential Manchester code signal; A driving circuit connected to the encoder and used to amplify the power of the differential Manchester code signal to obtain a differential Manchester code signal that can drive a transformer; The command sending circuit is connected to the driving circuit and is used to encode the instrument command string in the form of Manchester code and transmit it to the target logging instrument according to the differential Manchester code signal that can drive the transformer.
5. A surface testing device for a well logging instrument as claimed in claim 4, characterized in that: The command sending circuit comprises: a first diode, a cathode of which is connected to the first output terminal of the driving circuit; a first resistor, a first end of which is connected to the anode of the first diode; a transformer, wherein one end of the primary coil is connected to the second end of the first resistor; a second diode, a cathode of which is connected to the second output terminal of the driving circuit; a second resistor, a first end of which is connected to the anode of the second diode, and a second end of which is connected to the other end of the primary coil of the transformer; A first power source is connected to the primary coil of the transformer.
6. A surface testing device for a well logging instrument according to any one of claims 1 to 5, characterized in that: The feedback data separation is achieved through multiple sub-circuits, so that the target logging instrument in the entire downhole instrument string can be classified or individually detected, wherein the receiving and decoding circuit includes three sub-circuits, wherein the first sub-circuit receives mode 2 data of the target logging instrument, the second sub-circuit receives mode 5 data of the target logging instrument, and the third sub-circuit receives mode 7 data of the target logging instrument.
7. A surface testing device for a well logging instrument according to any one of claims 1 to 6, characterized in that: The subcircuit comprises: A receiving circuit connected to the target logging instrument and configured to receive the feedback data; A decoding circuit is connected to the receiving circuit and is used for decoding the feedback data into a standard Manchester code signal and transmitting the signal to the single chip microcomputer.
8. A surface testing device for a well logging instrument as claimed in claim 7, characterized in that: The receiving circuit comprises: a third resistor, a first end of which is connected to one end of the target well logging instrument, and a second end of which is connected to the other end of the target well logging instrument; a fourth resistor, a first end of which is connected to the second end of the third resistor; an optical coupler, wherein a first input terminal of the optical coupler is connected to a first terminal of the third resistor, and a second input terminal of the optical coupler is connected to a second terminal of the fourth resistor; A fifth resistor has a first end connected to the output end of the optical coupler, and a second end connected to the second power supply.
9. A surface testing device for a well logging instrument according to any one of claims 1 to 8, characterized in that: The device comprises an adjustable AC power supply and a DC power supply, wherein the adjustable AC power supply supplies power to a target logging instrument, and the DC power supply supplies power to electrical equipment in the device.
10. A surface testing device for a well logging instrument according to any one of claims 1 to 9, characterized in that: The device comprises an instrument interface for connecting to a target logging instrument.
11. A surface testing method for a well logging instrument, characterized in that: The method is performed by the device according to any one of claims 1 to 10, comprising the following steps: Sending an instrument command string according to a target logging instrument by means of the single chip microcomputer; The command circuit connected to the single chip microcomputer encodes the instrument command string, amplifies the power and transmits it to the target logging instrument; The receiving and decoding circuit connected to the target logging instrument decodes the feedback data of the target logging instrument through a plurality of independently arranged sub-circuits, and transmits the decoded data to the single chip microcomputer.
12. A surface testing method for a well logging instrument as claimed in claim 11, characterized in that: The method comprises the following steps: based on a preset communication protocol, decoding the decoded feedback data by an external device connected to the single chip microcomputer, wherein the preset communication protocol is: Header + instrument address + data length + data + checksum + end character The type of the target logging instrument is determined according to the instrument address, and the end of the data frame is determined according to the data length.
13. A storage medium, characterized in that: It contains a series of instructions for executing the method steps as claimed in any one of claims 11-12.
Citation Information
Patent Citations
Decoding method and device for Manchester encoding
CN112491763A
