Background
The well logging technology has developed from analog well logging, digital well logging, numerical control well logging to imaging well logging and networking imaging well logging in the last hundred years. The acquisition of logging data is completed by a ground system and a matched downhole instrument. Since the logging technology enters the numerical control era, particularly the imaging logging era, downhole instruments released by logging equipment manufacturers at home and abroad are connected in a bus mode and communicate with a ground system by adopting digital codes. However, instruments matched with various systems have different communication interfaces (including instrument buses and coding modes) and data transmission protocols, and thus, the instruments cannot be compatible and combined for well logging. For example, the ECLIPS logging system of atlas, whose downhole instruments employ WTS instrument buses and three manchester encodings of 20.83kbps, 41.66kbps, 93.75kbps, and a custom data transfer protocol; a LOGIQ logging system of Haributton company adopts a coaxial cable 10Base-T Ethernet as a bus and corresponding codes for underground instruments, and a data transmission protocol is a TCP/IP protocol and a self-defined application layer data structure; a SINOLOG900 logging system developed by petroleum engineering corporation of China petrochemical industry, adopts a twisted pair 10Base-T Ethernet as a bus and corresponding codes, and adopts a data transmission protocol which is a TCP/IP protocol and a self-defined application layer data structure.
One set of well logging system is often matched with dozens to dozens of underground instruments, each instrument has the value of dozens of thousands of yuan and millions of yuan, and the value of introduced instruments is even up to tens of millions of yuan, so that the investment of various domestic well logging companies on the underground instruments is very large and is counted in hundreds of millions of yuan. As the service life increases, surface systems age and upgrade and downhole tools continue to be used, requiring the tools to be hooked up to another logging system.
Alternatively, due to the unique technical features and advantages of each logging system, some wells require that a certain logging project must be measured by a certain instrument, and thus, a situation may occur in which one well is changed into several logging teams to measure different projects by using different logging systems.
After years of use and intensive research, various logging equipment manufacturers in China have mastered the introduced system quite deeply, and compatible downhole instruments and ground systems are manufactured after digestion and absorption. For example, the SL6000 system developed by the Zhongpetrochemical Shengli petroleum engineering company is compatible with the ECLIPS series instruments of the Atlas company, the ELIS system of the Zhonghai oil service company is developed by taking the ECLIPS system as a reference, and the HH-2530 system is developed by the Beijing Huanding technology company on the basis of the EXCELL-2000 system of the Harlibton company. On one hand, the communication interfaces, data transmission protocols and processing algorithms of various logging instruments are mastered by domestic logging professionals, and on the other hand, all systems and matched downhole instruments are self-organized and are not connected compatibly. Although some people have realized the hanging of some instrument on other systems by modifying the downhole instrument or adding the hardware module of the surface system, it goes against each other without any general solution for realizing the compatibility and combination logging of the downhole instrument by only one adapter and developing the corresponding software module as described in the present invention.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a device and a method for hanging a logging downhole instrument in a compatible manner.
The technical scheme is as follows:
a method for connecting logging downhole instruments in a compatible mode comprises the steps that an adapter is connected to the lower portion of a series of downhole instruments of a logging system A, an instrument bus B is established, and the lower portion of the instrument bus B is connected with series of downhole instruments of other logging systems; the adapter is internally provided with a conversion circuit and a programmable device and is used for coding command signals from the logging ground system in a coding mode of other logging systems, then sending the coded command signals to downhole series instruments of other logging systems, collecting instrument data of the downhole instruments of other logging systems, decoding the instrument data, recoding the coded command signals in a coding mode of the logging system A, and finally sending the coded command signals to the logging ground system.
Furthermore, the adapter packages the acquired instrument data of the downhole instruments of other logging systems and then sends the packaged instrument data to the logging ground system. The adapter is used for the conversion of the communication interface, including the conversion of an instrument bus and a coding mode, the upper end interface of the adapter adopts a communication interface specification A, the lower end interface adopts a communication interface specification B, and the conversion of the two communication interfaces is carried out through a circuit and a programmable device. The downhole instruments of the logging system a to which the adapter is connected adopt the communication interface specification a, while the downhole instruments of the logging system B to which it is connected adopt the communication interface specification B. The adapter is used for converting a data transmission protocol, the adapter communicates with a logging ground system by adopting a data transmission protocol A, communicates with an underground instrument of a logging system B which is hung below the adapter by adopting a data transmission protocol B, the adapter forwards data according to the protocol B or A according to the data received by the protocol A or B, and the protocol is converted by a programmable device. The logging ground system can generate an instrument string configuration command according to the model and the number of the instruments hung on the adapter, and the command is sent to the adapter to inform the adapter of the information of various instruments hung on the adapter.
Furthermore, the order in which the instruments are arranged in the instrument string configuration command determines the order in which the adapter collects data from them and the order in which the data for each instrument is in the encapsulated data packet. The information in the configuration command includes the following:
ToolNum: the number of the instruments hung below the logging adapter;
AcquireCmd: collecting commands of all instruments are hung on the adapter;
sendcmd: uploading commands of all instruments hooked by the adapter;
SendCmdTime: the moment when the adapter sends the uploading command to each instrument;
DataBytes: the length of the collected data of each instrument hung on the adapter;
totalDataBytes: the total length of the data collected by the adapter-connected instrument;
SendFrames: all collected data needs to be uploaded in several frames.
The adapter sequentially sends AcquireCmd to the underground instruments of the articulated logging system B according to the instrument sequence in the instrument string configuration command, then sends Sendcmd to the instruments according to SendcmdTime, and receives the measured data of the instruments. The adapter allocates storage space according to the TotalDataBytes, determines the storage positions of the TotalDataBytes according to the sequence of each instrument and the DataBytes, and stores the TotalDataBytes to the corresponding positions when instrument data are received, so that an encapsulation data packet of the instrument data of the logging system B is obtained. The TotalDataBytes and SendFrames in the instrument string configuration command are used for uploading the packaged data packet once or in multiple frames; when the total data bytes exceeds the maximum length of one frame of data supported by the communication protocol A, the data is uploaded for a plurality of frames, and each frame of data has different frame numbers. When multi-frame uploading is carried out, firstly, all frame data are spliced together according to the frame number to obtain complete data encapsulated by the adapter, and when the complete encapsulated data packet is uploaded once, the frame number is meaningless; and splitting the received encapsulated data packet according to the instrument sequence and the DataBytes in the instrument string configuration command to obtain the measurement data of each instrument.
The invention has the beneficial technical effects that:
the invention solves the problem of compatibility and combined logging of the underground instruments originally belonging to different logging systems, so that the existing various underground instruments can be hung on another logging system adopting different communication interfaces and data transmission protocols without any change, the geological application value and the creating effect of the underground instruments are fully played, the huge investment generated by purchasing new instruments is reduced, and the service capability of the logging system is expanded.
Heretofore, there has not been a flexible, versatile method of hanging a series of instruments to other logging systems. The common method is to realize the hanging connection of a certain instrument, modify the circuit of the instrument and re-develop a programmable device, and the modified instrument can not be hung on the original logging system; or two different ground systems are assembled together, one logging team can use more instruments for construction, but the two systems still need to be matched with the series of instruments, and the combined logging of the two series of instruments cannot be realized.
Detailed Description
The first embodiment is as follows:
referring to fig. 1, a device for compatible hanging of a logging downhole instrument is characterized in that a logging ground system A is connected to a downhole instrument string through a cable, an instrument bus A is established at the lower end of a cable telemetering short section, a series of downhole instruments matched with the logging system A are connected below the instrument bus A, the series of downhole instruments matched with the logging system A can be hung on the bus, digital communication is carried out between the logging system A and the ground system A through a coding mode A, and a data transmission protocol A is adopted for communication; the lower part of the series of downhole instruments matched with the logging system A is connected with an adapter, and the lower part of the adapter is connected with downhole instruments belonging to other logging systems.
As shown in FIG. 1, the lower end of the adapter establishes a tool bus B, so that downhole tools of the logging system B can be hung on the bus, commands are forwarded to the downhole tools in a coding mode B, and coded data of the mode B is received and decoded.
The adapter converts the coding mode of the underground instrument belonging to other logging systems into a coding mode A through a built-in coding conversion circuit and a programmable device. The method can communicate with a ground system through a coding mode A, and converts commands sent from the ground into coding modes of downhole instruments belonging to other logging systems.
The conversion of the data transmission protocol is completed by a curing program of a programmable device in the adapter. The order sent by the logging system A is formatted according to the order, the adapter receives the order and takes out the order content, and the order content is rearranged according to the order of the system B and then sent to the corresponding instrument. The data of the system B instruments received by the adapter can be uploaded to the ground according to the specified format of the system A
The measurement control and data collection of the instrument hooked under the adapter are completed through the adapter, so that a command is issued to inform the adapter of the information of the instrument hooked by the adapter, which is called an instrument string configuration command. The command is automatically issued when the instrument string is powered on and communication with the ground system is established, and can also be issued again through a software interface. The content of the command is automatically generated by the ground system software according to the model and the number of the instruments attached to the adapter, wherein the content generally comprises the following components:
ToolNum: the number of the instruments hooked under the logging adapter
AcquireCmd: acquisition command of each instrument hung on adapter
Sendcmd: uploading commands of all instruments hung on adapter
SendCmdTime: time when adapter sends upload command to each instrument
DataBytes: length of collected data of each instrument connected with adapter in hanging mode
totalDataBytes: total length of data collected by adapter-attached instrument
SendFrames: all the collected data needs to be uploaded in several frames.
The adapter receives the instrument string configuration command, stores the information, and is used when collecting data of the attached instrument. For a logging system which is driven by time to collect, an underground instrument of the logging system automatically collects and actively uploads data, in this case, an adapter sends AcquireCmd and Sendcmd commands to each instrument which is hung downwards at regular time, and the data are uploaded after being received; for the logging system which drives collection in depth, at each depth point, the adapter receives a collection command of a ground system, sends AcquireCmd and Sendcmd commands to each downward-hanging instrument, receives data of the AcquireCmd and Sendcmd commands and uploads the data.
The order in which the adapter sends ackirecmd to the instruments is the instrument order in the configuration command. The instrument receives the AcquireCmd command, prepares data, and transmits the data to the adapter when SendCmd is received. Some communication interfaces allow different instruments to upload data at the same time, so the adapter sends SendCmd not in the same order as AcquireCmd, but at a time determined using SendCmdTime.
Control commands sent by the ground system to the instrument hung on the adapter, such as electric instrument gear shifting, density high-voltage control, sound wave acquisition parameters, opening and closing of the push-in device and the like, are forwarded by the adapter, and the commands do not need to be stored in the adapter and are only forwarded once each time the commands are received. The ground system software sets flag bytes in the command content to distinguish the control command from the instrument string configuration command, and the adapter performs different processing according to the difference of the flags.
The adapter and the instruments hooked under the adapter correspond to 1 instrument for the system A, and the measurement data of the instruments are packaged in the adapter and then uploaded together. Data encapsulation is the organization of measurement data of each instrument in memory according to the instrument sequence in the instrument string configuration command. As shown in fig. 2, the adaptor uses a piece of memory with the size of TotalDataBytes to store data of each instrument, and determines the data writing position according to the DataBytes of each instrument, so as to solve the problem that the receiving sequence is different from the arranging sequence.
Some logging systems have a data transmission protocol that specifies the maximum length of a frame of data, and when TotalDataBytes is not greater than this length, the encapsulated data can be uploaded all at once, or else, the encapsulated data is divided into multiple frames to be uploaded, that is, the SendFrames value in the string configuration command. The value is calculated by ground system software and is sent to an adapter, so that the length of data uploaded each time is the same, the requirement of the frame length is met, and the number of frames and the number of useless data uploaded are as few as possible. For example, the maximum allowed frame length is 3200 bytes, the TotalDataBytes is 4315 bytes, and the SendFrames is 2, each time 2158 bytes are uploaded, and the second frame data has 1 last useless byte. The uploaded data has frame numbers of 1, 2, \8230;, respectively, up to SendFrames, when divided into multiple frames. When the multi-frame uploading is not needed, the frame number is meaningless.
In order to use the adapter and its attached downhole tool,to develop a corresponding software module, the software module is developed,are invoked by surface system software to receive and process data. When uploading in multi-frame, the adapter software module receives the uploaded data, firstly finds the frame with the frame number of 1, and then starts processing, otherwise abandons. The method comprises the steps of continuously receiving SendFrames frames from the beginning of receiving the frame No. 1, splicing the data in the SendFrames frames together, and removing the last useless data according to TotalDataBytes to obtain the encapsulated data shown in FIG. 2.
After the adapter software module obtains complete encapsulation data, the adapter software module is split according to the structure shown in fig. 2, and measurement data of each instrument is taken out and distributed to the software modules of the corresponding instruments for processing. Each attached instrument develops a software module for the instrument and is responsible for processing the data of the instrument.
Example two:
referring to fig. 3, a method for hanging a downhole logging instrument compatible, taking a single log900 logging system hanging a SL6000 series downhole instrument as an example, illustrates an embodiment of the method.
The SINOLOG900 logging system adopts a time-driven acquisition mode, a downhole instrument autonomously acquires and actively uploads data after receiving a measurement starting command of a ground system, the SL6000 logging system adopts a depth-driven data acquisition mode, the ground system sends an acquisition command to each downhole instrument at each depth point, and the downhole instruments upload data after receiving the command. In order to attach SL6000 series downhole instruments to the SINOLOG900 system, an adapter is required to send acquisition commands to the instruments, receive their data and upload them to the surface instead of the SL6000 surface system.
As shown in fig. 3, the SINOLOG900 surface system is connected to a downhole instrument string through a cable, an instrument bus established by a telemetry sub HSL9514 of the SINOLOG is a 10Base-T twisted pair ethernet, commands and data are transmitted between the surface system and the downhole instrument by using a TCP/IP protocol and a customized application layer data structure, and the data structure is shown in table 1. The contents of the issued commands and the uploaded data are used as the data body part of the table 1, and after receiving the commands or the measured data, each instrument or the ground software module thereof analyzes and processes the data according to the definition thereof.
TABLE 1 application layer data structure for communication between a SINOLOG900 system and a downhole tool
Instrument ID
|
Time
|
Data volume length
|
Type of data
|
Data body |
The SL6000 series downhole instrument adopts a so-called LDT communication interface and comprises an LDT instrument bus and three Manchester coding modes of 20.83kbps, 41.66kbps and 93.75 kbps. Of these, 20.83kbps was used to command the instrument, called M2CMD;41.66kbps and 93.75kbps are used for upload DATA, referred to as M2DATA and M5DATA, respectively. For each acquisition, the ground system firstly sends AcquireCmd to each instrument through the M2CMD to enable the instruments to prepare data; then, sendCmd is sent by M2CMD, and the instrument receiving the command uploads DATA through M2DATA or M5DATA. The control of the instrument action is also commanded by the M2 CMD. These operations of sending commands and receiving data, which were originally performed by the surface system, are now performed by the adapter.
The HSL9520 adapter shown in fig. 3 implements the conversion of the two communication interfaces and data transfer protocols described above. The downhole instrument as a SINOLOG900 system is hung on an Ethernet bus and is communicated with a ground system through an HSL 9514; the LDT instrument bus is established at the lower end and is communicated with the connected SL6000 series instruments.
Software modules for HSL9520 and SL6000 downhole tools were developed to command them and process the received data according to the SINOLOG900 system software interface specifications. The software module of the HSL9520 generates a tool string configuration command according to the model and the quantity of the attached SL6000 downhole tool and sends the command to the HSL9520 tool, the content of the received command is shown in the table 1, and the data body part of the command comprises the tool information of claim 6.
The HSL9520 stores the instrument information, sends AcquireCmd to each SL6000 instrument through M2CMD at regular time according to the instrument sequence in the configuration command, then sends Sendcmd to the instruments according to SendcmdTime, the instrument receiving the command uploads DATA through M2DATA or M5DATA, and the HSL9520 receives the DATA and packages the DATA in the manner shown in FIG. 2.
When the ground system sends a control command to the attached SL6000 instrument, the control command is actually sent to the HSL9520, the content of the command received by the ground system is shown in the table 1, the data body part is taken out, and the control command is sent to the corresponding target instrument through the M2 CMD.
The configuration command and the instrument control command received by the HSL9520 have different initials in the data body part, and are used as a mark for different processing, namely, storing the data for collecting the instrument or forwarding the data to the SL6000 instrument.
HSL9520 uploaded the packaged SL6000 instrumentation data to the surface as part of the data shown in table 1. The software module of the HSL9520 receives the data frame, takes out the data part, splits it according to the structure shown in fig. 2, takes out the measured data of each instrument, and distributes it to the software module of the corresponding SL6000 instrument for processing.